Guest User

Untitled

a guest
Jan 22nd, 2016
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.05 KB | None | 0 0
  1. <div class="login-area" style="width:320px;padding-top:20px;margin-top:0">
  2.    
  3.     <?php echo $this->Form->create('Order'); ?>
  4.  
  5.     <div class="form-group">
  6.         <?php echo $this->Form->input('service_id',array('class'=>'form-control','type'=>'select','label'=>'Layanan')); ?>
  7.     </div>
  8.     <div class="form-group">
  9.         <?php echo $this->Form->input('link',array('class'=>'form-control','type'=>'text','required'=>'required','label'=>'Target')); ?>
  10.     </div>
  11.     <div class="form-group">
  12.         <?php echo $this->Form->input('quantity',array('class'=>'form-control','type'=>'number','label'=>'Jumlah')); ?>
  13.     </div>
  14.      
  15.     <div class="form-group">
  16.         <?php echo $this->Form->submit('Submit',array('class'=>'btn btn-default large','enabled')); ?>
  17.     </div>
  18.    
  19.     <?php echo $this->Form->end(); ?>
  20.  
  21. </div>
  22. <div class="tg-wrap"><table class="tg">
  23.   <tr>
  24.  
  25.     <th class="tg-ul8i">Tipe Layanan<br></th>
  26.     <th class="tg-af8v">Harga Per <b>1000<b></th>
  27.     <th class="tg-af8v">Minimum <b>Order<b></th>
  28.   </tr>
  29. <?php
  30. $server = "localhost" ;
  31. $username = "puriz_smm" ;
  32. $password = "rk7MRQ%X?*]L" ;
  33. $database = "puriz_smm";
  34.  
  35. //Koneksi dan memilih database di server
  36. mysql_connect($server,$username,$password) or die ("Koneksi database gagal");
  37. mysql_select_db($database) or die ("Database tidak tersedia");
  38.  $tampil="select * from services";
  39.       $qryTampil=mysql_query($tampil);
  40.       while ($data=mysql_fetch_array($qryTampil)) {
  41.      
  42.      ?>
  43.  
  44. <tr>
  45.         <td class="tg-2gmd"><?php echo  $data['name']; ?><br></td>
  46.     <td class="tg-1cy3"><?php echo  $data['rate'] *10; ?></td>
  47.     <td class="tg-1cy3"><?php echo  $data['min_order']; ?></td>
  48.    
  49. </tr>
  50.     <?php } ?>
  51. </table></div>
  52. <div class="text-center">
  53.     <?php echo nl2br($page['Page']['content']);?>
  54. </div>
  55.  
  56. <?php $this->start('script'); ?>
  57.     <?php //echo $this->Html->script('wysi/bootstrap3-wysihtml5.min');?>
  58.     <script type="text/javascript">
  59.         $(function(){
  60.             $('#wisy').wysihtml5();
  61.         });
  62.     </script>
  63. <?php $this->end();
Add Comment
Please, Sign In to add comment