File: /www/wwwroot/oa.sanjiangapp.com/app/crm/order/view/create.html.php
<?php
/**
* The view file for create function of order module of ZDOO.
*
* @copyright Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Tingting Dai <daitingting@xirangit.com>
* @package order
* @version $Id$
* @link http://www.zdoo.com
*/
?>
<?php include '../../common/view/header.html.php';?>
<div class='panel'>
<div class='panel-heading'>
<strong><?php echo $lang->order->create;?></strong>
</div>
<div class='panel-body'>
<form method='post' id='orderForm'>
<table class='table table-form w-p60'>
<tbody>
<tr>
<th class='w-120px'><?php echo $lang->order->customer;?></th>
<td>
<div class='input-group'>
<?php echo html::select('customer', $customers, $customer, "class='form-control chosen' data-no_results_text='" . $lang->searchMore . "'");?>
<?php if(commonModel::hasPriv('customer', 'create')):?>
<?php echo html::input('customerName', '', "class='form-control rounded-left' style='display:none'");?>
<span class='input-group-addon'>
<label class='checkbox-inline'>
<input type='checkbox' name='createCustomer' id='createCustomer' value='1' /> <?php echo $lang->order->createCustomer?>
</label>
</span>
<?php endif;?>
</div>
</td>
</tr>
<tr class='customerInfo hide'>
<th><?php echo $lang->customer->contact;?></th>
<td>
<div class='required required-wrapper'></div>
<?php echo html::input('contact', '', "class='form-control'");?>
</td>
</tr>
<tr class='customerInfo hide'>
<th><?php echo $lang->customer->phone;?></th>
<td><?php echo html::input('phone', '', "class='form-control'");?></td>
</tr>
<tr class='customerInfo hide'>
<th><?php echo $lang->customer->email;?></th>
<td><?php echo html::input('email', '', "class='form-control'");?></td>
</tr>
<tr class='customerInfo hide'>
<th><?php echo $lang->customer->qq;?></th>
<td><?php echo html::input('qq', '', "class='form-control'");?></td>
</tr>
<tr class='customerInfo hide'>
<th><?php echo $lang->customer->weixin;?></th>
<td><?php echo html::input('weixin', '', "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->order->product;?></th>
<td>
<div class='input-group'>
<?php echo html::select('product[]', $products, '', "class='form-control chosen' multiple");?>
<?php if(commonModel::hasPriv('product', 'create')):?>
<?php echo html::input('productName', '', "class='form-control rounded-left' style='display:none'");?>
<span class='input-group-addon'>
<label class='checkbox-inline'>
<input type='checkbox' name='createProduct' id='createProduct' value='1' /> <?php echo $lang->order->createProduct?>
</label>
</span>
<?php endif;?>
</div>
</td>
</tr>
<tr class='productInfo hide'>
<th><?php echo $lang->product->code;?></th>
<td>
<div class='required required-wrapper'></div>
<?php echo html::input("code", '', "class='form-control' placeHolder='{$lang->product->placeholder->code}'");?>
</td>
</tr>
<tr class='productInfo hide'>
<th><?php echo $lang->product->category;?></th>
<td><?php echo html::select("category", $productCategories, '', "class='form-control chosen'");?></td>
</tr>
<tr class='productInfo hide'>
<th><?php echo $lang->product->subject;?></th>
<td><?php echo html::select("subject", $subjects, '', "class='form-control'");?></td>
</tr>
<tr class='productInfo hide'>
<th><?php echo $lang->product->type;?></th>
<td><?php echo html::select("type", $lang->product->typeList, '', "class='form-control'") . html::hidden('status', 'normal');?></td>
</tr>
<tr>
<th><?php echo $lang->order->plan;?></th>
<td>
<div class='row'>
<div class='col-sm-3'><?php echo html::select('currency', $currencyList, '', "class='form-control'");?></div>
<div class='col-sm-9'><?php echo html::input('plan', '', "class='form-control'");?></div>
</div>
</td>
</tr>
<?php if(commonModel::hasPriv('file', 'upload')):?>
<tr>
<th><?php echo $lang->files;?></th>
<td><?php echo $this->fetch('file', 'buildForm');?></td>
</tr>
<?php endif;?>
</tbody>
<tfoot>
<tr>
<td></td>
<td class='form-actions'>
<?php echo html::submitButton() . html::backButton();?>
<div id='duplicateError' class='hide'></div>
</td>
</tr>
</tfoot>
</table>
</form>
</div>
</div>
<div class='errorMessage hide'>
<div class='alert alert-danger alert-dismissable'>
<button aria-hidden='true' data-dismiss='alert' class='close' type='button'>×</button>
<button type='button' class='btn btn-default' id='continueSubmit'><?php echo $lang->continueSave;?></button>
</div>
</div>
<script>
<?php helper::import('../js/searchcustomer.js');?>
</script>
<?php include '../../common/view/footer.html.php';?>