?? a_company.php
字號:
<?
//"周一把注冊頁面的電話輸入框由四個改為三個!"
include("http://www.ec51.com/include/configuration.inc");
include("http://www.ec51.com/include/database.inc");
include("http://www.ec51.com/include/dbaccess.inc");
$lang = "gb2312";
$user_id = "test";
$rc = configuration($lang, $userid);
session_start();
if ($is_pass != "Yes")
header("Location: ../en_login.php");
if ($formtype == 2)
{
// $user_info = read_en_user($rc, $username);
// $user_info = read_user($rc, $username);
// $userid = $user_info[0]["euid"];
// if(!$userid)
// header("Location: ../en_login.php");
$i=0;
if(!$biztype){
$formtype=1;
$i=$i+1;
$reason_1 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >No business type specified.</font><br>";
}
if($company==""){
$formtype=1;
$i=$i+1;
$reason_2 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >No Company name specified </font><br>";
}
if($p_z_Z_CategoryId1==""){
$formtype=1;
$i=$i+1;
$reason_3 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >No category specified.</font><br>";
}
if($product==""){
$formtype=1;
$i=$i+1;
$reason_4 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >Please specify your company Product/Service.</font><br>";
}
if($tradeRegion=="" and $Othermarkets==""){
$formtype=1;
$i=$i+1;
$reason_5 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >No Main Markets specified. </font><br>";
}
if($employees==""){
$formtype=1;
$i=$i+1;
$reason_6 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >No employees counts specified.</font><br>";
}
if($overview=="" or (strlen($overview)<200)){
$formtype=1;
$i=$i+1;
$reason_7 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >Company profile too short.</font><font color=#888888> (200-4000 characters) </font><br>";
}
if($tel==""){
$formtype=1;
$i=$i+1;
$reason_8 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >No Country code of Phone specified.</font> <br>";
}
if($city==""){
$formtype=1;
$i=$i+1;
$reason_9 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >No city specified.</font> <br>";
}
if($address==""){
$formtype=1;
$i=$i+1;
$reason_10 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >No address specified. </font> <br>";
}
if($email==""){
$formtype=1;
$i=$i+1;
$reason_11 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >No email specified. </font> <br>";
}
if($linkman==""){
$formtype=1;
$i=$i+1;
$reason_12 = "$i. <font style=\"FONT-SIZE: 9pt;color:#ff0000\" >No contact specified. </font> <br>";
}
if($formtype==2){
$catid = $p_z_Z_CategoryId1;
$lasttime = date("Ymd");
if($userid){
$query = "update en_user set
biztype = '$biztype',company ='$company',product ='$product',tradeRegion ='$tradeRegion',Othermarkets ='$Othermarkets',
oemOdm = '$oemOdm',rndStaff = '$rndStaff',employees = '$employees',overview = '$overview',CEO = '$ceo',revenue = '$revenue',
homepage = '$homepage',certificate = '$certificate',tel = '$tel',fax = '$fax',mobile = '$mobile',zip = '$zip',address = '$address',
city = '$city',lastip='$REMOTE_ADDR',lasttime='$lasttime',email='$email',linkman='$linkman'
where euid=$userid";
$insertid = db_do_query($rc, $query, 0);
//$addproduct = add_en_info($rc,$userid,$country,$city,$i_type,$title,$keyword,$catid,$content,$p_num,$p_price,$p_package,$s_type,$p_type,$img,$uptime,$todate);
$formtype=3;
}
if(!$userid){ //2002/12/17 增加中文注冊用戶如果在英文用戶表里沒有 就insert into en_user 新增了一個電子郵件和聯系人項
$query = "insert into en_user (loginname,password,biztype,company,product,tradeRegion,Othermarkets,oemOdm,rndStaff,
employees,overview,CEO,revenue,homepage,certificate,tel,fax,mobile,zip,address,email,linkman,regtime,lasttime,regip,lastip)";
$query = $query."values ('$username','$password','$biztype','$company','$product','$tradeRegion','$Othermarkets','$oemOdm',
'$rndStaff','$employees','$overview','$ceo','$revenue','$homepage','$certificate','$tel','$fax',
'$mobile','$zip','$address','$email','$linkman','$lasttime','$lasttime','$REMOTE_ADDR','$REMOTE_ADDR')";
//echo $query;
$insertid = db_do_query($rc, $query, 1);
$formtype=3;
}
}
}
?>
<script language="JavaScript">
var script_us_web_server="http://my.alibaba.com"
var script_web_server="http://www.alibaba.com"
</script>
<html>
<head>
<title>a_company</title>
<meta content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<meta name="keywords" content=" exporter,importer,manufacturer,wholesaler,supplier, international trade,global trade,trade leads,product catalog,company directory,sourcing,b2b,business to business,china">
<meta name="description" content="marketplace of export and import,offers company directory,catalog and trade leads to importer,exporter,manufacturer,wholesaler,supplier.">
<LINK href="../images/feedback.css" type=text/css rel=stylesheet>
</head>
<BODY bgcolor=FFFFFF topmargin="0" marginheight="0">
<center>
<TABLE cellPadding=4 width="760" align=cetner border=0>
<TBODY>
<TR vAlign=top>
<TD class=m width="22%"><img src="../eimg/logo_middle_new.gif" border=0></TD>
<td width="1%"> </td>
<td width="1%"></td>
<TD class=m align=right width="76%"> <font color="#FF8000">Sign Out -
Check Email - Help</font> <HR SIZE=1> </TD>
</TR>
</TBODY>
</TABLE>
<!--cache-begin-->
<script language="JavaScript">
var checkOk = new Array();
checkOk[0] = "12288";
checkOk[1] = "8364";
var win = null;
function show_choose()
{
var new_head = '<HTML><HEAD><TITLE>Check - ec51</TITLE><META content="text/html; charset=iso-8859-2" http-equiv=Content-Type>'+
'<style type=text/css><!--BODY,TD{color:#000;font-size:12px;font-family:Verdana,sans-serif;MARGIN-TOP:0px}A:LINK{color:#039;text-decoration:underline;}A:VISITED{color:#039;text-decoration:underline;}A:HOVER{color:#700054;text-decoration:underline;}.X{font:bold 24px Verdana,sans-serif;}.L{font:bold 18px Verdana,sans-serif;}.LM{font:bold 14.8px Verdana,sans-serif;}.M{font-size:12px;font-weight:bold}.C{font-size:12px}.S{font-size:10px}.S1{font-size:11px}.S9{font-size:9px}.MORE{font:bold 10px Verdana,sans-serif;text-decoration:underline;}.ST{font:bold 11px Verdana,sans-serif;}select{font-size:12px;}input{font-size:12px}.textarea{font-size:12px}--></style>' +
'<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">'+
'<center>'+
'<table border=0 cellspacing="0" cellpadding="4" width="100%" bgcolor="#088ABD">'+
'<tr>'+
'<td class="M" ><font color="#FFFFFF">Sorry, part of the information you filled in is not in English (Marked in red below). Please change into English.<class=s></font></td>'+
'</tr>'+
'</table>'+
'<table border=0 cellspacing="0" cellpadding="4" width="100%" bgcolor="#EFEFDE">'+
'<tr>'+
'<td>';
var new_end = '</td></tr></table><br><table border=0 cellspacing="0" cellpadding="4" width="100%" bgcolor="#088ABD"><tr><td class="M" align="center"><b><a href="javascript:opener.focus();window.close()"><img src="$url_img_server/product/button_closewindow.gif" width="106" height="20" border="0"></a></b></td></tr></table></center></BODY></HTML>';
var new_body = '';
var checkStr = '';
if(win==null||win.closed)
{
win = window.open("about:blank","","width=420,height=200,scrollbars=yes,resizable=yes");
}
else
{
win.document.close();
}
checkStr = document.getElementById("detail").value;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charCodeAt(i);
char = checkStr.charAt(i);
if (ch > 256 && !isOkChar(ch))
{
new_body += '<font color="#CC0000"><b>' + char + '</b></font>';
}
else
{
new_body += char;
}
}
win.document.write(new_head+new_body+new_end);
win.focus();
}
function CapitalizeWord(form, field)
{
var component = eval("document." + form + "." + field);
var value = component.value;
var bCap = true;
var returnValue = "";
for(i=0;i<value.length;i++)
{
var nextString = value.substring(i,i+1);
if (nextString == ' ')
{
bCap = true;
}
else
{
if(bCap)
{
nextString = nextString.toUpperCase();
bCap = false;
}
else
{
nextString = nextString.toLowerCase();
}
}
returnValue = returnValue + nextString;
}
component.value = returnValue;
}
function setAdditionalForm(){
if(window.document.myform.businessType.value == "1" ) {
window.document.all.additionalForm.style.display='';
} else {
window.document.all.additionalForm.style.display='none';
}
}
function checkchi(myint) {
var checkStr = myint;
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charCodeAt(i);
if (ch > 256 && !isOkChar(ch))
{
allValid = false;
break;
}
}
if (!allValid)
{
return (false);
}
return (true);
}
function check(object,input_value)
{
if (!(checkchi(input_value)))
{
alert("Sorry, the information you filled is not in English. Please input in English instead.");
object.focus();
}
}
function doEditSubmit(objsel,oldSel,manufacturingValue)
{
var newSel = objsel.options[objsel.selectedIndex].value;
var mValue = manufacturingValue;
if ((newSel == mValue && oldSel != mValue) || (newSel != mValue && oldSel == mValue))
{
objsel.form.act.value = "previous";
objsel.form.submit();
}
}
function checkDetail(object,input_value)
{
if (!(checkchi(input_value)))
{
document.check_form.detail.value = input_value;
document.check_form.submit();
return false;
}
return true;
}
function isOkChar(ch)
{
for (j = 0; j < checkOk.length; j++)
if (ch == checkOk[j])
{
return true;
}
return false;
}
</script>
</head>
<body onload= " " bgcolor=FFFFFF>
<br>
<div align="center">
<center>
<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="500" align="center">
<div align="center">
<center>
<table border="0" width="342" height="29" cellspacing="0" cellpadding="0">
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -