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

📄 add_doc_form.php3

📁 FIREFLY 是一个多用户专业帮助桌面系统
💻 PHP3
字号:
<?##################################################################  ADD DOC FORM##################################################################/* init */$access_level=100;include ("../include/config.php3");include "../include/header.inc";echo "<body bgcolor=#BBBCC2>";/* process */$products=SQL_READ_ALL_PRODUCTS($user->dbproc);$products=SQL_DELETE_DOUBLES($products, 'prd_name', 'prd_id');$mess1=  $msg_add_doc;$username=$user->name;if (($mode=='edit') && ($doc_id>0)){  $datas=SQL_READ_DOC($user->dbproc, $doc_id);    if (is_array($datas))    {        $docproducts=SQL_GET_DOC_PRD($user->dbproc, $doc_id);      $mess1=$msg_edit;      $login=SQL_GET_LOGIN_INFOS($dbproc, $datas[0]['login_id']);      $username=$login[0]['name'];    }}?><form action="add_doc_do.php3" method="post" target="_self"><table cellspacing=0 border=0 cellpadding=0 class='color_title' ><tr>    <td class='color_title'  >            <h1>               <? echo $mess1; ?>            </h1>    </td></tr><tr></tr><tr>    <td class='color_title'  >              <b><? echo $msg_author; ?> <b>       <? echo " ".$username ?>    </td></tr><tr>    <td class='tdcl'  >         <table>            <tr>                <td class='color_title' >                <?echo $msg_title; ?>                <input type="text" name="short_desc" size=50 maxlength=255 value="<? if (is_array($datas)) echo stripslashes($datas[0]['short_desc']);?>">                 </td>                 <td class='color_title' >                 <? echo $msg_cont_type; ?>                 <? if (is_array($datas))  $res=SQL_TBL_TO_SELECT($dbproc,"refdoc", "id", "lbl","html", "type_doc", $datas[0]['type'] );                    else $res=SQL_TBL_TO_SELECT($dbproc,"refdoc", "id", "lbl","html", "type_doc");                  ?>                     </td>            </tr>        </table>    </td></tr><tr>  <td class='tdcc'>      <table>        <tr>          <td valign=top class='tdcc' >            <? echo $msg_implied_prd ?>  <br>            <SELECT multiple size="10" name="products[]">            <? $num=count($products);                        for ($index=0;$index<$num;$index++)                        {                       echo "<OPTION  value=".$products[$index]['prd_id'];                    if (is_array($docproducts))                      {                          for ($it=0;$it<count($docproducts);$it++)                            {                              if ($products[$index]['prd_id']==$docproducts[$it]['prd_id'])                                {                                  echo " SELECTED";                                }                            }                      }                      echo  ">".$products[$index]['prd_name']."</OPTION>\n";                        }                    ?>           </SELECT>            </td>            <td valign=top class='tdcc' >            <? echo $msg_content ?>  <br>                  <textarea name="content" rows=15 cols=60 WRAP="physical"><? if (is_array($datas)) echo stripslashes($datas[0]['content']);?></textarea>            </td>          </tr>      </table></tr><tr>    <td>       <table>       <tr>          <td>        <input type="submit" value="       <?          if ($mode=='edit')            echo $msg_edit;            else            echo $msg_add;       ?>        ">              </td>          <td>        <input type="reset" name="reset">          </td>          <td>          <input type="submit" name="delete" value="<?echo $msg_del;?>">          </td>          </tr>          </table>    <input type='hidden' name="mode" value=<? echo $mode; ?>>        <input type='hidden' name="product_count" value="<?echo count($products); ?>">        <input type='hidden' name="doc_id" value="<? echo $doc_id?>">    </td></tr></table></form><br><?include "../include/footer.inc"; ?>

⌨️ 快捷键说明

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