Guest User

Untitled

a guest
Jun 7th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.37 KB | None | 0 0
  1. <?php break;?>
  2. <?php case"add":?>
  3. <?php if($user->userlevel == 5): print Filter::msgInfo(lang('PROJ_NOPERM'), false); return; endif;?>
  4. <?php $ptype = $content->getProjectTypes();?>
  5. <?php $userlist = $user->getUserList(1);?>
  6. <?php $marcalist = $content->getMarca();?>
  7. <?php $tipoapp = $content->getTipoApp();?>
  8. <h1><img src="../images/projects.png" alt="" /><?php echo lang('PROJ_TITLE1');?></h1>
  9. <p class="info"><?php echo lang('PROJ_INFO1') . lang('REQFIELD1') . required() . lang('REQFIELD2');?></p>
  10. <div class="block-border">
  11.   <div class="block-content">
  12.     <form action="" method="post" id="admin_form" name="admin_form">
  13.       <table cellspacing="0" cellpadding="0" class="forms">
  14.         <thead>
  15.           <tr>
  16.             <th colspan="2" class="left"><?php echo lang('PROJ_SUB1');?></th>
  17.           </tr>
  18.         </thead>
  19.         <tr>
  20.        
  21.         <tr>
  22.           <th><?php echo lang('INVC_CNAME');?>: <?php echo required();?></th>
  23.           <td><select name="client_id" class="custombox" style="width:250px">
  24.               <option value="">--- <?php echo lang('INVC_CLIENTSELECT');?> ---</option>
  25.               <?php if($userlist):?>
  26.               <?php foreach ($userlist as $crow):?>
  27.               <option value="<?php echo $crow->id;?>"><?php echo $crow->name;?></option>
  28.               <?php endforeach;?>
  29.               <?php unset($crow);?>
  30.               <?php endif;?>
  31.             </select>
  32.     <a href="index.php?do=clients-rip&action=add"><img src="../images/client-overview.png" alt="" class="tooltip img-wrap2" title="<?php echo lang('PROJ_ADDCLIENTE');?>"/></a>
  33.             </td>
  34.         </tr>
  35.        
  36.                 <tr>
  37.           <th><?php echo lang('INVC_CNAME');?>: <?php echo required();?></th>
  38.           <td><select name="client_id" class="custombox" style="width:250px">
  39.               <option value="">--- <?php echo lang('INVC_CLIENTSELECT');?> ---</option>
  40.               <?php if($userlist):?>
  41.               <?php foreach ($userlist as $crow):?>
  42.               <option value="<?php echo $crow->id;?>"><?php echo $crow->name;?></option>
  43.               <?php endforeach;?>
  44.               <?php unset($crow);?>
  45.               <?php endif;?>
  46.             </select>
  47.             </td>
  48.         </tr>
  49.  
  50.          <tr>
  51.          <th width="300"><?php echo lang('PROB_DICH');?>: <?php echo required();?></th>
  52.          <td colspan="1"><textarea name="prob_dich" cols="20" rows="1" id="prob_dich_content"></textarea></td>
  53.         </tr>
  54.        
  55.         <tr>
  56.           <th><?php echo lang('PROJ_TYPE');?>: <?php echo required();?></th>
  57.           <td><select name="project_type" class="custombox" style="width:250px">
  58.               <option value="">--- Select Project Type ---</option>
  59.               <?php if ($ptype):?>
  60.               <?php foreach ($ptype as $prow):?>
  61.               <option value="<?php echo $prow->id;?>"><?php echo $prow->title;?></option>
  62.               <?php endforeach;?>
  63.               <?php unset($prow);?>
  64.               <?php endif;?>
  65.             </select></td>
  66.         </tr>
  67.         <tr>
  68.           <th><?php echo lang('PROJ_START');?>:</th>
  69.           <td><input name="start_date" type="text" class="inputbox" id="start_date" size="25" value="<?php echo date('Y-m-d');?>"/></td>
  70.         </tr>
  71.         <tr>
  72.           <th><?php echo lang('PROJ_END');?>:</th>
  73.           <td><input name="end_date" type="text" class="inputbox" id="end_date" size="25" value="<?php echo date('Y-m-d');?>"/></td>
  74.         </tr>
  75.                                                                                                                                    
  76.         <?php /*?>
  77.         <tr>
  78.           <th>Billing Status:</th>
  79.           <td><label for="b_status">Payment Amount:</label>
  80.             <input type="text" id="b_status" style="border:0; color:#5AB814;font-weight:bold; background-color:transparent" name="b_status"/>
  81.             <div id="b_status-range" style="width: 250px;margin-top:2px;margin-left:5px"></div></td>
  82.         </tr>
  83.         <?php */?>
  84.         <tr>
  85.           <th><?php echo lang('PROJ_STATUS');?>:</th>
  86.           <td><label for="p_status"><?php echo lang('PROJ_COMPSTSTUS');?>:</label>
  87.             <input type="text" id="p_status" style="border:0; color:#0084FF;background-color:transparent" name="p_status"/>
  88.             <div id="p_status-range" style="width:250px;margin-top:2px;margin-left:5px"></div></td>
  89.         </tr>
  90.         <tr>
  91.           <th><?php echo lang('PROJ_MANAGER');?>:</th>
  92.           <td><select name="staff_id" class="custombox" style="width:250px">
  93.               <?php foreach ($user->getUserList("9' or userlevel = '5") as $srow):?>
  94.               <option value="<?php echo $srow->id;?>"><?php echo $srow->name;?></option>
  95.               <?php endforeach;?>
  96.               <?php unset($srow);?>
  97.             </select></td>
  98.         </tr>
  99.         <tr>
  100.           <th><?php echo lang('PROJ_NOTIFY');?>:</th>
  101.           <td><?php echo lang('YES');?>
  102.             <input type="radio" name="notify_staff" value="1" />
  103.             <?php echo lang('NO');?>
  104.             <input name="notify_staff" type="radio" value="0" checked="checked" /></td>
  105.         </tr>
  106.         <tr>
  107.           <td><input name="submit" type="submit" value="<?php echo lang('PROJ_ADD');?>" class="button button-green"/></td>
  108.           <td><a href="index.php?do=projects" class="button-alt button-gray"><?php echo lang('CANCEL');?></a></td>
  109.         </tr>
  110.       </table>
  111.     </form>
  112.   </div>
  113. </div>
  114.  
  115. <?php echo Core::doForm("processProject");?>
Advertisement
Add Comment
Please, Sign In to add comment