📄 account_add.php
字号:
<?
########################################
#OsoonCrm
#客户列表
########################################
include "include/check.inc.php";
include "include/db.inc.php";
include "include/header.inc.php";
include "include/array.inc.php";
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="90%">
<tr valign=top>
<td width="201">
<?
include "include/left.inc.php";
?>
</td>
<td>
<?
$sql="select * from $tbl_crm_contact order by ContactID";
$res=mysql_query($sql);
?>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height=25>
<tr align="right">
<td> <a href="account_add.php">添加客户</a> | <a href="account_list.php">客户列表</a>
</td>
</tr>
</table>
<hr>
<form name="NewAccount" method="post" action="account_add_post.php" id="NewAccount">
<div style="DISPLAY: none"> </div>
<table class="DetailTable" cellspacing="0" cellpadding="5" border="1" bordercolor="#F5F1E9">
<tr class="DTitle">
<td colspan="2" bgcolor="#ede5d2"><span id="Account_New1_lblStatus" style="font-weight:bold;">新建帐户</span>
<span id="Account_New1_lblAccountNameCopy" style="font-weight:bold;"></span></td>
</tr>
<tr>
<td class="DTitleHL1" colspan="2"><font face="宋体"></font></td>
</tr>
<tr>
<td class="DTitleHL2" colspan="2"> <a id="Account_New1_lnkBasicInfo" style="CURSOR:hand" class="tabmore" onClick="JScript:ShowBasicInfo();document.images('MoreInfoList').src=src='../Resources/list2.gif';document.images('BasicInfoList').src=src='../Resources/list.gif'" onMouseOver="JScript:this.style.color = 'Blue'" onMouseOut="JScript:this.style.color = '#930000'"></a>
<a id="Account_New1_lnkMore" style="CURSOR:hand" class="tabmore" onMouseOver="JScript:this.style.color = 'Blue'" onMouseOut="JScript:this.style.color = '#930000'" onClick="JScript:ShowMoreClick()"></a>
</td>
</tr>
</table>
<div id="DivBasicInfo">
<table class="DetailTable" cellspacing="1" cellpadding="0">
<tr class="DTitle">
<td>>>基本信息</td>
<td align="right">
<input type="submit" name="Account_New1:btnSave" value="保存" id="Account_New1_btnSave" style="height:24px;width:72px;" />
<input type="button" value="返回客户列表" onClick="javascript:document.location='account_list.php'"; name="button">
</td>
</tr>
<tr>
<td class="HL" colspan="2"> </td>
</tr>
</table>
<table class="DetailTable" cellspacing="0" cellpadding="5" border="1" bordercolor="#F5F1E9">
<colgroup> <col class="LDetail"> <col class="RDetail"> <col class="LDetail">
<col class="RDetail"> </colgroup>
<tr>
<td height="14">帐户拥有者</td>
<td height="14"> <? echo $array_crm_id2user[$G_uid] ?></td>
<td class="LaltDetail" height="14">类型</td>
<td height="14">
<select name="AccountType" id="Account_New1_ddlAccountType" class="nmTxt">
<?
$sql="select * from crm_account_type";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
?>
<option value="<? echo $row[TypeID] ?>"><? echo $row[TypeName] ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td class="LaltDetail">帐户名称</td>
<td>
<input name="AccountName" type="text" id="Account_New1_txbAccountName" class="nmTxt" onpropertychange="document.all['Account_New1_lblAccountNameCopy'].innerText = document.all['Account_New1_txbAccountName'].value" />
</td>
<td>行业</td>
<td>
<select name="AccountIndustry" id="Account_New1_ddlIndustry" class="nmTxt">
<?
$sql="select * from crm_account_industry";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
?>
<option value="<? echo $row[IndustryID] ?>"><? echo $row[IndustryName] ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>编号</td>
<td>
<input name="AccountSN" type="text" id="Account_New1_txbAccountSN" class="nmTxt" />
</td>
<td>来源</td>
<td>
<select id="Account_New1_ddlSource" class="nmTxt" name="AccountSource">
<?
$sql="select * from crm_source";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
?>
<option value="<? echo $row[SourceID] ?>"><? echo $row[SourceName] ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td class="LaltDetail" height="21">地域 </td>
<td>
<select name="Area">
<option value="" selected></option>
<?
$leng=count($array_crm_area);
for($i=1;$i<$leng+1;$i++)
{
?>
<option value="<? echo $array_crm_area[$i] ?>"><? echo $array_crm_area[$i] ?></option>
<?
}
?>
</select>
</td>
<td height="21">年收入</td>
<td height="21">
<select name="YearRevenue" id="Account_New1_ddlRevenue" class="nmTxt">
<?
$sql="select * from crm_account_year_revenue ";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
?>
<option value="<? echo $row[RevenueID] ?>"><? echo $row[RevenueName] ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>电话</td>
<td>
<input name="Tel" type="text" id="Account_New1_txbTelephone" class="nmTxt" />
</td>
<td>人员规模</td>
<td>
<select name="HumanScale" id="Account_New1_ddlScale" class="nmTxt">
<?
$sql="select * from crm_account_human_scale ";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
?>
<option value="<? echo $row[ScaleID] ?>"><? echo $row[ScaleName] ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>传真</td>
<td>
<input name="Fax" type="text" id="Account_New1_txbFax" class="nmTxt" />
</td>
<td>关系等级</td>
<td>
<select name="Relationship" id="Account_New1_ddlRelationship" class="nmTxt">
<?
$sql="select * from crm_account_relationship ";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
?>
<option value="<? echo $row[RelationshipID] ?>"><? echo $row[RelationshipName] ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>网址</td>
<td>
<input name="WebSite" type="text" id="Account_New1_txbWebSite" class="nmTxt" />
</td>
<td>主联系人</td>
<td>
<input name="MainContact" type="text" id="Account_New1_txbTax" class="nmTxt" />
</td>
</tr>
<tr>
<td>信用度</td>
<td>
<input name="Credit" type="text" value="0" id="Account_New1_txbCredit" class="nmTxt" />
</td>
<td>税号</td>
<td>
<input name="TaxSN" type="text" id="Account_New1_txbTax" class="nmTxt" />
</td>
</tr>
</table>
<table class="DetailTable" cellspacing="1" cellpadding="0">
<tr>
<td class="DTitle" colspan="4">>>企业信息<a name="PostBackByCountry"></a></td>
</tr>
<tr>
<td class="HL" colspan="4"></td>
</tr>
</table>
<table id="Account_New1_ucCustomizeFields_tblCustomize" class="DetailTable" cellspacing="0" cellpadding="5" border="1" bordercolor="#F5F1E9">
<tr>
<td title="(货币)" class="LDetail">固定资产(人民币万元)</td>
<td class="RDetail">
<input name="FixedAssets" type="text" value="0" class="nmTxt" />
</td>
<td title="(货币)" class="LDetail">销售额(人民币万元)</td>
<td class="RDetail">
<input name="Sale" type="text" value="0" class="nmTxt" />
</td>
</tr>
<tr>
<td title="(整数)" class="LDetail">销售人员人数</td>
<td class="RDetail">
<input name="SaleManNumber" type="text" value="0" class="nmTxt" />
</td>
<td title="(整数)" class="LDetail">电脑数量</td>
<td class="RDetail">
<input name="ComputerNumber" type="text" value="0" class="nmTxt" />
</td>
</tr>
<tr>
<td title="(大文本)" class="LDetail">企业性质</td>
<td class="RDetail">
<select name="CorpProperty">
<?
$sql="select * from crm_corp_kind ";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
?>
<option value="<? echo $row[CorpKindID] ?>"><? echo $row[CorpKindName] ?></option>
<?
}
?>
</select>
</td>
<td class="LDetail"> </td>
<td class="RDetail"> </td>
</tr>
<tr>
<td class="LDetail">成立时间 </td>
<td class="RDetail">
<table border="0" style="width:200px;">
<tr id="Account_New1_ucCustomizeFields_CAL_6_TableRow" style="width:200px;">
<td id="Account_New1_ucCustomizeFields_CAL_6_DateCell" style="width:200px;">
<input name="FoundTime" type="text" value="">
</td>
<td id="Account_New1_ucCustomizeFields_CAL_6_TimeCell" style="width:0px;"></td>
</tr>
</table>
</td>
</tr>
</table>
<table class="DetailTable" cellspacing="1" cellpadding="0">
<tr>
<td class="DTitle" colspan="4">>>地址信息<a name="PostBackByCountry"></a></td>
</tr>
<tr>
<td class="HL" colspan="4"></td>
</tr>
</table>
<table class="DetailTable" cellspacing="0" cellpadding="5" border="1" bordercolor="#F5F1E9">
<colgroup> <col class="LDetail"> <col class="RDetail"> <col class="LDetail">
<col class="RDetail"> </colgroup>
<tr>
<td>国家</td>
<td>
<select name="Country">
<option value="1" selected>中国</option>
<option value="2">美国</option>
<option value="3">日本</option>
<option value="4">韩国</option>
<option value="5">加拿大</option>
</select>
</td>
<td>省份</td>
<td>
<input name="Province" type="text" id="Account_New1_txbCity" class="nmTxt" />
</td>
</tr>
<tr>
<td>城市</td>
<td>
<input name="City" type="text" id="Account_New1_txbCity" class="nmTxt" />
</td>
<td>邮编</td>
<td>
<input name="Zip" type="text" id="Account_New1_txbPostCode" class="nmTxt" />
</td>
</tr>
<tr>
<td>地址</td>
<td class="RLDetail" colspan="3">
<input name="Address" type="text" id="Account_New1_txbAddress" class="nmTxt" />
</td>
</tr>
<tr>
<td>备注</td>
<td class="RLDetail" colspan="3">
<textarea name="Msg" id="Account_New1_txbMark" class="nmTxt"></textarea>
</td>
</tr>
</table>
</div>
<div id="DivMoreInfo"> <iframe id="Frame_Tab" frameborder="0" height="0" scrolling="no" class="MoreFrame"></iframe>
</div>
</form>
</td>
</tr>
</table>
<?
include "include/footer.inc.php";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -