Copy script berikut dan beri nama backup.php. Simpan ke server lama.
#!/usr/bin/php
// Postfixadmin (http://postfixadmin.sourceforge.net/) to Zimbra| #!/usr/bin/env python | |
| from PyQt4 import QtCore, QtGui | |
| import main_ui | |
| import menu_ui | |
| import input_pin_ui | |
| import saldo_ui | |
| import ubah_pin_ui | |
| import ambil_beras_ui | |
| import proses_ui |
| <?php | |
| /** | |
| * Controller is the customized base controller class. | |
| * All controller classes for this application should extend from this base class. | |
| */ | |
| class RestController extends CController | |
| { | |
| /** | |
| * @var string the default layout for the controller view. Defaults to '//layouts/column1', | |
| * meaning using a single column layout. See 'protected/views/layouts/column1.php'. |
| public class MainSorting { | |
| public static void main(String[] args) { | |
| // buat object Sorting dengan panjang array max = 10 | |
| Sorting srt = new Sorting(10); | |
| // Data siswa | |
| Siswa1 sis1 = new Siswa1("Bagas", 60); | |
| Siswa1 sis2 = new Siswa1("Udi", 80); |
| public class MainMatriks { | |
| public static void main(String[] args) { | |
| // buat object Matriks dengan panjang array 3 x 3 | |
| Matriks m = new Matriks(3, 3); | |
| // set nilai baris ke 0 kolom ke 0 dengan angka 1 | |
| m.setNilai(1, 0, 0); | |
| // set nilai baris ke 0 kolom ke 1 dengan angka 2 | |
| m.setNilai(2, 0, 1); | |
| m.setNilai(3, 0, 2); |
| public class QuizStack { | |
| public static void main(String[] args) { | |
| Stack st = new Stack(10); | |
| Mhs mhs1 = new Mhs(1, "121", "Bagas", "SI"); | |
| Mhs mhs2 = new Mhs(2, "122", "Udi", "SI"); | |
| Mhs mhs3 = new Mhs(3, "123", "Sahsangka", "SI"); | |
| Mhs mhs4 = new Mhs(4, "124", "Udibagas", "SI"); |
| <?php | |
| /* Di view */ | |
| $this->widget('bootstrap.widgets.TbGridView',array( | |
| 'id'=>'my-grid', // perhatikan ini | |
| ... | |
| 'columns' => array( | |
| ... | |
| array( |
| <?php | |
| $a = true; | |
| while ($a == true) { | |
| // your code here | |
| } |
| <?php $kelasArray = CHtml::listData(Kelas::model()->findAll(array( | |
| 'select' => 'kelas', | |
| 'group' => 'kelas', | |
| 'distinct' => true | |
| )), 'kelas', 'kelas'); ?> | |
| <?php echo $form->dropDownListRow($model, 'kelas', $kelasArray, array('empty' => '-- Pilih Kelas --', 'id' => 'kelas')); ?> | |
| <script> |
| <?php | |
| $con = mysql_connect('localhost', 'root', 'xxx'); | |
| $db = mysql_select_db('[nama_db]', $con); | |
| $per_page = 10; | |
| $offset = isset($_GET['offset']) ? $_GET['offset'] : 0; | |
| $query = mysql_query("SELECT * FROM [nama_table] ORDER BY ID ASC LIMIT $offset, $per_page"); | |
| while ($data = mysql_fetch_array($query)) { |