Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php break;?>
- <?php case"add":?>
- <?php if($user->userlevel == 5): print Filter::msgInfo(lang('PROJ_NOPERM'), false); return; endif;?>
- <?php $ptype = $content->getProjectTypes();?>
- <?php $userlist = $user->getUserList(1);?>
- <?php $marcalist = $content->getMarca();?>
- <?php $tipoapp = $content->getTipoApp();?>
- <h1><img src="../images/projects.png" alt="" /><?php echo lang('PROJ_TITLE1');?></h1>
- <p class="info"><?php echo lang('PROJ_INFO1') . lang('REQFIELD1') . required() . lang('REQFIELD2');?></p>
- <div class="block-border">
- <div class="block-content">
- <form action="" method="post" id="admin_form" name="admin_form">
- <table cellspacing="0" cellpadding="0" class="forms">
- <thead>
- <tr>
- <th colspan="2" class="left"><?php echo lang('PROJ_SUB1');?></th>
- </tr>
- </thead>
- <tr>
- <tr>
- <th><?php echo lang('INVC_CNAME');?>: <?php echo required();?></th>
- <td><select name="client_id" class="custombox" style="width:250px">
- <option value="">--- <?php echo lang('INVC_CLIENTSELECT');?> ---</option>
- <?php if($userlist):?>
- <?php foreach ($userlist as $crow):?>
- <option value="<?php echo $crow->id;?>"><?php echo $crow->name;?></option>
- <?php endforeach;?>
- <?php unset($crow);?>
- <?php endif;?>
- </select>
- <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>
- </td>
- </tr>
- <tr>
- <th><?php echo lang('INVC_CNAME');?>: <?php echo required();?></th>
- <td><select name="client_id" class="custombox" style="width:250px">
- <option value="">--- <?php echo lang('INVC_CLIENTSELECT');?> ---</option>
- <?php if($userlist):?>
- <?php foreach ($userlist as $crow):?>
- <option value="<?php echo $crow->id;?>"><?php echo $crow->name;?></option>
- <?php endforeach;?>
- <?php unset($crow);?>
- <?php endif;?>
- </select>
- </td>
- </tr>
- <tr>
- <th width="300"><?php echo lang('PROB_DICH');?>: <?php echo required();?></th>
- <td colspan="1"><textarea name="prob_dich" cols="20" rows="1" id="prob_dich_content"></textarea></td>
- </tr>
- <tr>
- <th><?php echo lang('PROJ_TYPE');?>: <?php echo required();?></th>
- <td><select name="project_type" class="custombox" style="width:250px">
- <option value="">--- Select Project Type ---</option>
- <?php if ($ptype):?>
- <?php foreach ($ptype as $prow):?>
- <option value="<?php echo $prow->id;?>"><?php echo $prow->title;?></option>
- <?php endforeach;?>
- <?php unset($prow);?>
- <?php endif;?>
- </select></td>
- </tr>
- <tr>
- <th><?php echo lang('PROJ_START');?>:</th>
- <td><input name="start_date" type="text" class="inputbox" id="start_date" size="25" value="<?php echo date('Y-m-d');?>"/></td>
- </tr>
- <tr>
- <th><?php echo lang('PROJ_END');?>:</th>
- <td><input name="end_date" type="text" class="inputbox" id="end_date" size="25" value="<?php echo date('Y-m-d');?>"/></td>
- </tr>
- <?php /*?>
- <tr>
- <th>Billing Status:</th>
- <td><label for="b_status">Payment Amount:</label>
- <input type="text" id="b_status" style="border:0; color:#5AB814;font-weight:bold; background-color:transparent" name="b_status"/>
- <div id="b_status-range" style="width: 250px;margin-top:2px;margin-left:5px"></div></td>
- </tr>
- <?php */?>
- <tr>
- <th><?php echo lang('PROJ_STATUS');?>:</th>
- <td><label for="p_status"><?php echo lang('PROJ_COMPSTSTUS');?>:</label>
- <input type="text" id="p_status" style="border:0; color:#0084FF;background-color:transparent" name="p_status"/>
- <div id="p_status-range" style="width:250px;margin-top:2px;margin-left:5px"></div></td>
- </tr>
- <tr>
- <th><?php echo lang('PROJ_MANAGER');?>:</th>
- <td><select name="staff_id" class="custombox" style="width:250px">
- <?php foreach ($user->getUserList("9' or userlevel = '5") as $srow):?>
- <option value="<?php echo $srow->id;?>"><?php echo $srow->name;?></option>
- <?php endforeach;?>
- <?php unset($srow);?>
- </select></td>
- </tr>
- <tr>
- <th><?php echo lang('PROJ_NOTIFY');?>:</th>
- <td><?php echo lang('YES');?>
- <input type="radio" name="notify_staff" value="1" />
- <?php echo lang('NO');?>
- <input name="notify_staff" type="radio" value="0" checked="checked" /></td>
- </tr>
- <tr>
- <td><input name="submit" type="submit" value="<?php echo lang('PROJ_ADD');?>" class="button button-green"/></td>
- <td><a href="index.php?do=projects" class="button-alt button-gray"><?php echo lang('CANCEL');?></a></td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- <?php echo Core::doForm("processProject");?>
Advertisement
Add Comment
Please, Sign In to add comment