File: /www/wwwroot/oa.sanjiangapp.com/app/crm/order/view/x.create.html.php
<?php
/**
* The create view file 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 Gang Liu <liugang@cnezsoft.com>
* @package order
* @version $Id$
* @link http://www.zdoo.com
*/
?>
<?php include '../../../sys/common/view/header.lite.html.php';?>
<div class='panel xuanxuan-card'>
<div class='panel-heading'>
<strong><i class="icon-plus"></i> <?php echo $lang->order->create;?></strong>
</div>
<div class='panel-body'>
<form method='post' id='orderForm'>
<table class='table table-form'>
<tr>
<th class='w-80px'><?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('name', '', "class='form-control' 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' 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->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-xs-3'><?php echo html::select('currency', $currencyList, '', "class='form-control'");?></div>
<div class='col-xs-9'><?php echo html::input('plan', '', "class='form-control'");?></div>
</div>
</td>
</tr>
<tr>
<th></th>
<td class='form-actions'>
<?php echo html::submitButton() . html::backButton();?>
<div id='duplicateError' class='hide'></div>
</td>
</tr>
</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='submit' 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';?>