Пример #1
0
       </td>
    </tr>
	<tr>
      <td nowrap class="TableContent">代理商价格:</td>
      <td class="TableData">
	  <?php 
echo get_pubuser(1, 'user', $view['user'], "+选择人员", '', 22);
?>
</td>
      <td class="TableContent">上级代理:</td>
      <td class="TableData">
	  <?php 
if ($view['bid'] != '') {
    crm_title('选择代理商', 'cname', 'bid', 'crm_business', 1, $view['bid'], public_value('title', 'crm_business', 'id=' . $view['bid']));
} else {
    crm_title('选择代理商', 'cname', 'bid', 'crm_business', 1);
}
?>
      </td>
    </tr>
</table>
<?php 
//引入表单
form_edit('代理商信息', 'crm_business', $view['id']);
//引入编辑器
form_edit_eweb('crm_business', $view['id']);
$user = $db->fetch_one_array("SELECT id,name FROM " . DB_TABLEPRE . "crm_contact  WHERE type1 = '1' and cid='" . $view['id'] . "' and type=2 ");
?>

<input type="hidden" name="pid" value="<?php 
echo $user['id'];
Пример #2
0
      <td nowrap class="TableContent">申请人:</td>
      <td class="TableData"><?php 
echo get_pubuser(1, 'user', "", "+选择人员", '', 22);
?>
</td>
      <td class="TableContent">供应商名称:<?php 
get_helps();
?>
</td>
      <td class="TableData">
	 <?php 
if ($_GET['cid'] != '') {
    echo public_value('title', 'crm_supplier', 'id=' . $_GET['cid']);
    echo '<input type="hidden" name="cid" value="' . $_GET['cid'] . '" />';
} else {
    crm_title('选择供应商', 'cname', 'cid', 'crm_supplier', 1);
}
?>
      </td>
    </tr>
	
</table>

<table class="TableBlock" border="0" width="90%" align="center">
<tr>
      <td nowrap class="TableHeader" colspan="4">产品信息</td>
    </tr>
	<tr>
      <td nowrap class="TableContent" style="font-weight:bold;">产品名称</td>
      <td class="TableContent" width="15%" align="center" style="font-weight:bold;">产品单价</td>
      <td class="TableContent" width="15%" align="center" style="font-weight:bold;">采购数量</td>
Пример #3
0
    </tr>
	<tr>
      <td nowrap class="TableContent">客户名称:</td>
      <td class="TableData"><?php 
if ($_GET['cid'] != '') {
    echo public_value('title', 'crm_supplier', 'id=' . $_GET['cid']);
    echo '<input type="hidden" name="cid" value="' . $_GET['cid'] . '" />';
} else {
    crm_title('选择企业', 'cname', 'cid', 'crm_supplier', 1);
}
?>
</td>
      <td class="TableContent">采购单:</td>
      <td class="TableData">
	 <?php 
crm_title('选择信息', 'pername', 'perid', 'crm_purchase', 1);
?>
      </td>
    </tr>
</table>
<?php 
//引入表单
form_add('付款信息', 'crm_payment');
//引入编辑器
form_add_eweb('crm_payment');
//引入流程
if ($_flow == 1) {
    crm_flow_add('crm_payment');
}
?>
Пример #4
0
	  <td class="TableContent" width="15%"> 客户名称:<?php 
get_helps();
?>
</td>
      <td class="TableData" width="35%">
	  <?php 
if ($_GET['type'] == 1) {
    $company = 'crm_company';
} else {
    $company = 'crm_business';
}
if ($_GET['cid'] != '') {
    echo public_value('title', $company, 'id=' . $_GET['cid']);
    echo '<input type="hidden" name="cid" value="' . $_GET['cid'] . '" />';
} else {
    crm_title('选择企业', 'cname', 'cid', $company, 1);
}
?>
	  
       </td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 
        投诉时间:<?php 
get_helps();
?>
</td>
      <td class="TableData" width="35%"><input type="text" name="comdate" class="BigInput" size="15" value="<?php 
echo get_date('Y-m-d', PHP_TIME);
?>
" onClick="WdatePicker();"/></td>
Пример #5
0
       </td>
    </tr>
	
	<tr>
      <td nowrap class="TableContent" width="15%"> 
      </td>
      <td class="TableData" width="35%"></td>
	  
	  <td class="TableContent" width="15%"> 报价单:</td>
      <td class="TableData" width="35%">
	  <?php 
if ($_GET['cid'] != '') {
    echo public_value('title', 'crm_offer', 'id=' . $_GET['oid']);
    echo '<input type="hidden" name="oid" value="' . $_GET['oid'] . '" />';
} else {
    crm_title('选择报价单', 'oname', 'oid', 'crm_offer', 1);
}
?>
	  
       </td>
    </tr>
</table>
<?php 
//引入表单
form_add('订单信息', 'crm_order');
//引入编辑器
form_add_eweb('crm_order');
//引入流程
if ($_flow == 1) {
    crm_flow_add('crm_order');
}
Пример #6
0
get_helps();
?>
</td>
      <td class="TableData" width="35%"><input name="price" type="text" class="BigInput" id="price" style="width: 200px;" onKeyUp="value=value.replace(/[^0-9^.]/g,'');"/></td>
	  
	  <td class="TableContent" width="15%"> 客户名称:<?php 
get_helps();
?>
</td>
      <td class="TableData" width="35%">
	  <?php 
if ($_GET['cid'] != '') {
    echo public_value('title', 'crm_company', 'id=' . $_GET['cid']);
    echo '<input type="hidden" name="cid" value="' . $_GET['cid'] . '" />';
} else {
    crm_title('选择企业', 'cname', 'cid', 'crm_company', 1);
}
?>
	  
       </td>
    </tr>
	
	
</table>
<table class="TableBlock" border="0" width="90%" align="center">
<tr>
      <td nowrap class="TableHeader" colspan="4">产品信息</td>
    </tr>
	<tr>
      <td nowrap class="TableContent" style="font-weight:bold;">产品名称</td>
      <td class="TableContent" width="15%" align="center" style="font-weight:bold;">产品单价</td>