tags // menu_title — The name of your menu displayed on the dashboard // capability — Minimum capability required to view the menu // menu_slug — Slug name to refer to the menu; should be a unique name // function — Function to be called to display the page content for the item // icon_url — URL to a custom image to use as the Menu icon // position — Location in the menu order where it should appear //add_menu_page( 'PMB', 'PMB', 'manage_options', __FILE__, 'pmb_settings_page', plugins_url( '/images/wp-logo.png', __FILE__ ),0 ); //30 Maret 2012 21:39:27 //add_menu_page( 'PMB', 'PMB', 'manage_options', __FILE__, 'pmb_settings_page','',0 ); //01 April 2012 13:23:43 //tambahan fitur: agar user yang biasa yang cuma bisa read saja bisa edit datanya sendiri... //add_menu_page( 'Log Book SSK', 'Logbook',', 'read', __FILE__, 'pmb_settings_page','',0 );//01 April 2012 13:15:58 add_menu_page( 'Log Book SSK', 'Perbaikan Peralatan', 'read', __FILE__, 'pmb_settings_page',plugins_url( 'logbook16x16.png', __FILE__ ),0 );// 2012-06-06 //create submenu items //add_submenu_page( parent_slug, page_title, menu_title, capability, menu_slug, function ); //add_submenu_page( __FILE__, 'PMB > Edit', 'Edit', 'manage_options', __FILE__.'_edit', 'pmb_edit_page' ); add_submenu_page( __FILE__, 'LogBook > Edit', 'Data Teknisi', 'manage_options', 'pmb_myplugin', 'pmb_edit_page' ); add_submenu_page( __FILE__, 'LogBook > Edit', 'Data Peralatan', 'manage_options', 'pmb_myplugin', 'pmb_alat_page' ); add_submenu_page( __FILE__, 'LogBook > Help', 'Help', 'read', __FILE__.'_help', 'pmb_help_page' ); add_submenu_page( __FILE__, 'LogBook > About', 'About', 'manage_options', __FILE__.'_about', 'pmb_about_page' ); //Following is a list of all available submenu functions in WordPress. //add_dashboard_page — Adds a submenu to the Dashboard menu //add_posts_page — Adds a submenu to the Posts menu //add_media_page — Adds a submenu to the Media menu //add_links_page — Adds a submenu to the Links menu //add_pages_page — Adds a submenu to the Pages menu //add_comments_page — Adds a submenu to the Comments page //add_theme_page — Adds a submenu to the Appearance menu //add_plugins_page — Adds a submenu to the Plugins menu //add_users_page — Adds a submenu to the Users menu //add_management_page — Adds a submenu to the Tools menu //add_options_page — Adds a submenu to the Settings menu //create a submenu under Settings //add_options_page( 'PMB Settings Page', 'PMB', 'manage_options', __FILE__, 'pmb_settings_page' ); } function pmb_settings_page(){ echo '

Perbaikan Peralatan

Lengkapi data perbaikan peralatan di bawah ini :'; ?>

ID_Teknisi           :         

NIP                      :        

     

                  

Data Teknisi


NIP				:  
Nama Teknisi	:  
Alamat			:  
TTL			    :  
Jabatan		    :  
Pendidikan	    : 
Tingkat		    :   
Raiting			: 
Ket 			:  

 

Data Peralatan


NIP				:  
Nama Teknisi	:  
Alamat			:  
TTL			    :  
Jabatan		    :  
Pendidikan	    : 
Tingkat		    :   
Ket 			:  

 
tag 'pmb_myplugin_section_text', // The name of the callback function that will echo some explanations about that section 'pmb_myplugin' // The settings page on which to show the section (that is, the ?page=pmb_myplugin part of the page URL) ); add_settings_field('pmb_myplugin_text_string','Enter text here','pmb_myplugin_setting_input','pmb_myplugin','pmb_myplugin_main'); } //need to define two simple callback functions: // One to display a few explanations about the section and // one to output and fill the form field. // Explanations about this section function pmb_myplugin_section_text() { echo '

Edit data PMB di sini.

'; print_r(get_option( 'pmb_myplugin_options' )); } // Display and fill the form field function pmb_myplugin_setting_input() { // get option 'text_string' value from the database $options = get_option( 'pmb_myplugin_options' ); $text_string = $options['text_string']; // echo the field //echo ""; echo ""; } // Validate user input (we want text only) function pmb_myplugin_validate_options( $input ) { $valid = array(); $valid['text_string'] = preg_replace( '/[^a-zA-Z]/', '', $input['text_string'] ); if( $valid['text_string'] != $input['text_string'] ) { add_settings_error( 'pmb_myplugin_text_string', 'pmb_myplugin_texterror', 'Incorrect value entered!', 'error' ); } return $valid; } function pmb_help_page(){ ?>

Help

PMB ini hanya untuk menampung data calon mahasiswa secara on-line.

Jika Anda memiliki pertanyaan, silahkan ke Lenny Keren la ...!

About My Plugin

Lenny Keren la ...!
Statistik LogBook

Pada saat ini Logbook sedang Offline !!! Maaf ....

'; } /* #####=====#####=====#####=====#####=====#####=====#####===== WIDGETS /wp-admin/widgets.php #####=====#####=====#####=====#####=====#####=====#####===== */ // use widgets_init action hook to execute custom function add_action( 'widgets_init', 'pmb_register_widgets' ); //register our widget function pmb_register_widgets() { register_widget( 'pmb_widgetexample_widget_my_info' ); } class pmb_widgetexample_widget_my_info extends WP_Widget { //process the new widget function pmb_widgetexample_widget_my_info() { $widget_ops = array( 'classname' => 'pmb_widgetexample_widget_class', 'description' => 'Display a user\'s favorite movie and song.' ); $this->WP_Widget( 'pmb_widgetexample_widget_my_info', 'PMB Info', $widget_ops ); } //build the widget settings form function form($instance) { $defaults = array( 'title' => 'My Info', 'movie' => '', 'song' => '' ); $instance = wp_parse_args( (array) $instance, $defaults ); $title = $instance['title']; $movie = $instance['movie']; $song = $instance['song']; ?>

Title:

Favorite Movie:

Favorite Song:

Fav Movie: ' . $movie . '

'; echo '

Fav Song: ' . $song . '

'; echo $after_widget; } } /* Add the post form to the user/profile edit page in the admin. */ add_action( 'show_user_profile', 'pmb_post_form' ); add_action( 'edit_user_profile', 'pmb_post_form' ); /* Function for displaying an extra form on the user edit page. */ function pmb_post_form( $user ) { /* Get the current user's meta */ $first_name = get_user_meta( $user->ID, 'first_name', true ); $tempat_lahir = get_user_meta( $user->ID, 'tempat_lahir', true ); $tahun_lahir = get_user_meta( $user->ID, 'tahun_lahir', true ); $bulan_lahir = get_user_meta( $user->ID, 'bulan_lahir', true ); $hari_lahir = get_user_meta( $user->ID, 'hari_lahir', true ); $alamat = get_user_meta( $user->ID, 'alamat', true ); $rt = get_user_meta( $user->ID, 'rt', true ); $rw = get_user_meta( $user->ID, 'rw', true ); $kota = get_user_meta( $user->ID, 'kota', true ); $provinsi = get_user_meta( $user->ID, 'provinsi', true ); $kode_pos = get_user_meta( $user->ID, 'kode_pos', true ); $telepon = get_user_meta( $user->ID, 'telepon', true ); $hp = get_user_meta( $user->ID, 'hp', true ); $agama = get_user_meta( $user->ID, 'agama', true ); $status_menikah = get_user_meta( $user->ID, 'status_menikah', true ); $jenis_kelamin = get_user_meta( $user->ID, 'jenis_kelamin', true ); $sekolah_asal = get_user_meta( $user->ID, 'sekolah_asal', true ); $status_sekolah = get_user_meta( $user->ID, 'status_sekolah', true ); $jurusan_sekolah = get_user_meta( $user->ID, 'jurusan_sekolah', true ); $nomor_ijazah = get_user_meta( $user->ID, 'nomor_ijazah', true ); $sumber_info = get_user_meta( $user->ID, 'sumber_info', true ); $keberatan = get_user_meta( $user->ID, 'keberatan', true ); $pilihan1 = get_user_meta( $user->ID, 'pilihan1', true ); $pilihan2 = get_user_meta( $user->ID, 'pilihan2', true ); $pilihan3 = get_user_meta( $user->ID, 'pilihan3', true ); ?>

LOGBOOK

Silahkan isi Logbook dibawah ini dengan data yang sesuai dengan data yang benar dan sesuai dengan yang telah dikerjakan


Masukkan hari melakukan perbaikan.

Masukkan 2 (DUA) DIGIT tanggal tanggal perbaikan peralatan.

Masukkan 2 (DUA) DIGIT bulan perbaikan peralatan.

Masukkan EMPAT DIGIT tahun perbaikan peralatan.

Masukkan Nama peralatan yang diperbaiki.

Masukkan aplikasi peralatan.

Masukkan merk dari peralatan.

Masukkan Lokasi / tempat peralatan.

Masukkan kerusakan yang terjadi.

Masukkan Tindakan yang dilakukanuntuk perbaikan.

Masukkan hasil yang didapat.

Keterangan.

Masukkan nama teknisihand phone / mobile phone Anda.

Masukkan agama Anda.

Masukkan status menikah Anda.

Masukkan jenis_kelamin Anda.

Masukkan asal sekolah Anda.

Masukkan Status Sekolah Anda.

Masukkan Jurusan Anda saat Anda sekolah dahulu.

Masukkan nomor ijazah terakhir Anda saat Anda sekolah dahulu.

Pilih darimana Anda mendapatkan informasi tentang Politeknik Kampar. Informasi Anda tentang ini akan membantu perbaikan proses PMB ditahuntahun berikutnya.

Data Anda jika anda izinkan dapat kami berikan ke institusi pendidikan lain, sehingga Anda tidak akan kerepotan lagi untuk mendaftar ke Perguruan Tinggi/Institusi Pendidikan lainnya.