⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit_profile.php

📁 通达OA部分源代码
💻 PHP
📖 第 1 页 / 共 3 页
字号:
            <td width="40%" align="right" class="innertablestyle"><font class="normal"><strong>Company 
              Name </strong></font></td>
            <td width="6"><font class="red">*</font></td>
            <td width="60%"><font class="normal"> 
              <input name="companyname" type="text" value="<?php echo $companyname ; ?>">
              <input name="profile_id" type="hidden" id="profile_id" value="<? echo $profile_id;?>">
              </font></td>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>Company 
              Logo </strong></font></td>
            <td>&nbsp;</td>
            <td><font size="2" face="Arial, Helvetica, sans-serif" color="#666666"> 
              <input name = "list1" type = "text" id="list1" value="<?php echo $logo; ?>" size="20" readOnly >
              <input type=BUTTON name=btn_name2 value="Upload" onClick=attachment('list1')>
              <input type=BUTTON name=buttonname2 value="Remove" onClick=removeattachment()>
              </font><font size="2" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp;</font><font class="normal">&nbsp; 
              </font></td>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>Business 
              Type </strong></font></td>
            <td><font class="red">*</font></td>
            <td><font class="normal"> 
              <select name="businesstype">
                <option value="">*please select*</option>
                <?
				$rs_query=mysql_query("Select * from sbbleads_businesstypes order by sb_businesstype" );
	while ($rs=mysql_fetch_array($rs_query))
	{
				?>
                <option value="<?php echo $rs["sb_id"]; ?>"
				<?php
				if ( $rs["sb_id"]==$businesstype )
				{
				echo "  selected ";
				}
				?>
				
				><?php echo $rs["sb_businesstype"]; ?></option>
                <?
			  }
			  ?>
              </select>
              &nbsp; </font><font class="normal">&nbsp; </font></td>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>Category<br>
              </strong></font><font class="smalltext">(max <? echo "<b>".$cats."</b>";?> 
              category(ies))</font></td>
            <td><font class="red">*</font></td>
            <td><font class="normal"> 
              <?
						 						 
                            ?>
              <textarea name="category" cols="37" rows="5" readonly="readonly" id="textarea"><? echo $cat_list;?></textarea>
              <br>
              <font class="normal"> 
              <select name="cats" id="select" >
                <option value="0">Choose a category</option>
                <?
				  $rs_query=mysql_query("select * from sbbleads_categories order by sb_pid");
				  
				  while($rst=mysql_fetch_array($rs_query))
				  {
				  $cat_path="";
		$child=mysql_fetch_array(mysql_query("select * from sbbleads_categories where sb_pid=".$rst["sb_id"]));
			  if($child)
			  {
			  continue;
			  }
			  $cat_path.=$rst["sb_cat_name"];
		 $par=mysql_query("select * from sbbleads_categories where sb_id=".$rst["sb_pid"]);
		 				while($parent=mysql_fetch_array($par))
		 				{
						$cat_path=$parent["sb_cat_name"].">".$cat_path;
						$par=mysql_query("select * from sbbleads_categories where sb_id=".$parent["sb_pid"]);
						}
                                      ?>
                <option value="<? echo $rst["sb_id"];?>" ><? echo $cat_path;?></option>
                <?
									  }
									  ?>
              </select>
              </font> 
              <input name="cid" type="hidden" id="cid2" value="<? echo $cid_list;?>">
              <input name="add" type="button" id="add2" value="Add" onClick="add_category()">
              <input name="Remove" type="button" id="Remove2" value="Remove" onClick="remove_category()">
              &nbsp; </font><font class="normal">&nbsp; </font></td>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>Product/Services 
              We Offer</strong></font></td>
            <td><font class="red">*</font></td>
            <TD valign="middle"> <font class='normal'> 
              <script language="JavaScript" type="text/javascript">
<!--

<?
$content = $services;
$content = RTESafe($content);
?>//Usage: initRTE(imagesPath, includesPath, cssFile)
initRTE("../images/", "", "");

//Usage: writeRichText(fieldname, html, width, height, buttons)
writeRichText('services', '<?=$content?>', 450, 200, true, false);

//uncomment the following to see a demo of multiple RTEs on one page
//document.writeln('<br><br>');
//writeRichText('rte2', 'read-only text', 450, 100, true, false);
//-->
/*document.write("<br><font class='smalltext'>Description length must not exceed <?php echo $sbrow_con['sb_description_length'];?> characters</font>");*/
</script>
              </font> <noscript>
              <p><font class="normal"><b>Javascript must be enabled to use this 
                form.</b></font></p>
              </noscript></TD>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>Year 
              Established </strong></font></td>
            <td><font class="red">*</font></td>
            <td><font class="normal"> 
              <select name="yearestablished">
                <?php
				for ($i=2003;$i>=1900;$i--)
				{
				?>
                <option 
				<?php
				if ( $i==$yearestablished  )
				{
				echo "  selected ";
				}
				?>
				><?php echo $i; ?></option>
                <?
				}
				?>
              </select>
              </font></td>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>Main 
              Market </strong></font></td>
            <td><font class="red">*</font></td>
            <td><table cellspacing=0 cellpadding=4 width="100%" align=top 
                  border=0>
                <tbody>
                  <tr> 
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <?php
					   $cnt=1;
					   $rs_query_t=mysql_query("select * from sbbleads_markets order by sb_market");
					   while($rs_t=mysql_fetch_array($rs_query_t))
					   {
					   ?>
                        <?php if ($cnt%2==1) { ?>
                        <tr> 
                          <?php } ?>
                          <td><font class="normal"> 
                            <input  type="checkbox" value="<?php echo $rs_t["sb_id"];?>" name="market<?php echo $cnt;?>" 
						  		<?php
						if (strpos($markets,",".$rs_t["sb_id"]."," ) )
						{
						echo " checked ";
						}
						?>>
                            <?php echo $rs_t["sb_market"] ;?> </font></td>
                          <?php if ($cnt%2==0) { ?>
                        </tr>
                        <?php } ?>
                        <?php
						$cnt++;
					   }
					   ?>
                      </table></td>
                  </tr>
                  <tr> 
                    <td width="100%"> <input name="cnt" type="hidden" id="cnt" value="<? echo $cnt;?>"> 
                      <font class="normal">Other Markets: <br>
                      <input name=othermarkets type="text" value="<?php echo $othermarkets;  ?>" 
                        maxlength=40>
                      </font></td>
                  </tr>
                </tbody>
              </table></td>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>Main 
              Product Focus</strong></font></td>
            <td><font class="red">*</font></td>
            <td><font class="normal"> 
              <select   name=productfocus>
                <option value="">Please Select</option>
                <?
				$rs_query=mysql_query("Select * from sbbleads_productfocus  order by sb_productfocus" );
	while ($rs=mysql_fetch_array($rs_query))
	{
				?>
                <option value="<?php echo $rs["sb_id"]; ?>"
				<?php
				if ( $rs["sb_id"]==$productfocus )
				{
				echo "  selected ";
				}
				?>
				
				><?php echo $rs["sb_productfocus"]; ?></option>
                <?
			  }
			  ?>
              </select>
              </font></td>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>Number 
              of Employees</strong></font></td>
            <td><font class="red">*</font></td>
            <td><font class="normal"> 
              <select name=employees>
                <option value="">Please Select</option>
                <?
				$rs_query=mysql_query("Select * from sbbleads_employees order by sb_id" );
	while ($rs=mysql_fetch_array($rs_query))
	{
				?>
                <option value="<?php echo $rs["sb_id"]; ?>"
				<?php
				if ( $rs["sb_id"]==$employees )
				{
				echo "  selected ";
				}
				?>
				
				><?php echo $rs["sb_employees"]; ?></option>
                <?
			  }
			  ?>
              </select>
              </font></td>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>Company 
              Profile</strong></font></td>
            <td><font class="red">*</font></td>
            <TD valign="middle"> <font class='normal'> 
              <script language="JavaScript" type="text/javascript">
<!--

<?
$content = $companyprofile;
$content = RTESafe($content);
?>//Usage: initRTE(imagesPath, includesPath, cssFile)
initRTE("../images/", "", "");

//Usage: writeRichText(fieldname, html, width, height, buttons)
writeRichText('companyprofile', '<?=$content?>', 450, 200, true, false);

//uncomment the following to see a demo of multiple RTEs on one page
//document.writeln('<br><br>');
//writeRichText('rte2', 'read-only text', 450, 100, true, false);
//-->
/*document.write("<br><font class='smalltext'>Description length must not exceed <?php echo $sbrow_con['sb_description_length'];?> characters</font>");*/
</script>
              </font> <noscript>
              <p><font class="normal"><b>Javascript must be enabled to use this 
                form.</b></font></p>
              </noscript></TD>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>CEO/Owner's 
              Name </strong></font></td>
            <td><font class="red">*</font></td>
            <td><font class="normal"> 
              <input name="ceo" type="text" value="<?php echo $ceo;  ?>">
              </font></td>
          </tr>
          <tr valign="top"> 
            <td height="24" align="right" class="innertablestyle"><font class="normal"><strong>Phone</strong></font></td>
            <td>&nbsp;</td>
            <td><table border="0" align="left" cellpadding="0" cellspacing="0">
                <tr> 
                  <td><font class="smalltext">Country Code </font></td>
                  <td><font class="smalltext">Area Code </font></td>
                  <td><font class="smalltext">Phone Number</font></td>
                </tr>
                <tr> 
                  <td width="90"><font face="Arial, Helvetica, sans-serif" size="2"> 
                    <input name="phone" type="text"  id="phone"  value="<?php echo $phone; ?>" size="5" maxlength="5" >
                    </font></td>
                  <td width="77"><font face="Arial, Helvetica, sans-serif" size="2"> 
                    <input name="phone1" type="text"  id="phone1"   value="<?php echo $phone1; ?>" size="8" maxlength="8" >
                    </font></td>
                  <td width="148"><font face="Arial, Helvetica, sans-serif" size="2"> 
                    <input name="phone2" type="text"  id="phone2"   value="<?php echo $phone2; ?>" size="20" maxlength="20" >
                    </font></td>
                </tr>
              </table>
              <font face="Arial, Helvetica, sans-serif" size="2">&nbsp; </font></td>
          </tr>
          <tr valign="top"> 
            <td height="24" align="right" class="innertablestyle"><font class="normal"><strong>Fax</strong></font></td>
            <td>&nbsp;</td>
            <td> <table border="0" align="left" cellpadding="0" cellspacing="0">
                <tr> 
                  <td><font class="smalltext">Country Code </font></td>
                  <td><font class="smalltext">Area Code </font></td>
                  <td><font class="smalltext">Number</font></td>
                </tr>
                <tr> 
                  <td width="90"><font face="Arial, Helvetica, sans-serif" size="2"> 
                    <input name="fax" type="text"  id="fax"   value="<?php echo $fax; ?>" size="5" maxlength="5" >
                    </font></td>
                  <td width="77"><font face="Arial, Helvetica, sans-serif" size="2"> 
                    <input name="fax1" type="text"  id="fax1"   value="<?php echo $fax1; ?>" size="8" maxlength="8" >
                    </font></td>
                  <td width="148"><font face="Arial, Helvetica, sans-serif" size="2"> 
                    <input name="fax2" type="text"  id="fax2"   value="<?php echo $fax2; ?>" size="20" maxlength="20" >
                    </font></td>
                </tr>
              </table></td>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle"><font class="normal"><strong>Homepage</strong></font></td>
            <td>&nbsp;</td>
            <td><font class='normal'>http:// 
              <input name="website" type="text" id="website" value="<?php echo $website;  ?>">
              &nbsp; </font><font class="normal">&nbsp; </font></td>
          </tr>
          <tr valign="top"> 
            <td align="right" class="innertablestyle">&nbsp;</td>
            <td>&nbsp;</td>
            <td><input type="submit" name="Submit2" value="Update  Profile"> <input name="sb_id" type="hidden" id="sb_id2" value="<?php echo $sb_id; ?>"> 
              <input name="sb_uid" type="hidden" id="sb_uid3" value="<?php echo $sb_uid; ?>">
              <input name="sbcom" type="hidden" id="sbcom" value="<?php echo $sbcom; ?>"> 
            </td>
          </tr>
        </table>
        <p align="center">&nbsp;</p>
        </form>
</td>
  </tr>
</table>
<?
}
}  //End of main
include_once("template.php");
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -