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

📄 modify_news_form.php

📁 采用PHP+oracle;功能设计:用户管理、栏目管理、新闻管理、专题管理、日志管理
💻 PHP
📖 第 1 页 / 共 3 页
字号:
			        $old=$result_array[$i][0];

					$i++;

					echo "<option value=''>*********************************************</option>";

				}//第二级

				?>

          </select>

          <input name="Submit72" type="button" class="input1"  onclick=openwin("select_modle.php?id=2") value="选择模板">

          <br>

        专题二 

<select name="column3">

  <option value="0" <? if($array[column3]==0){echo 'selected';} ?> >选择专题</option>

            <?

				$sqldo="select spec_id,spec_name from basespec where spec_layer=2";

				$result_array=$cla->db_query($sqldo);

				$i=0;

				$old=$result_array[$i][0];

				while($result_array[$i][0]){

				    $temp1=$result_array[$i][0];

				    $temp1_name=strip_tags($result_array[$i]["SPEC_NAME"]);

				    $sqldo_in="select spec_id,spec_name from basespec where spec_father='$temp1'";

				    $result_array_in=$cla->db_query($sqldo_in);

				    $j=0;

		    		$flg1=0;

				    if($result_array_in[$j][0]==""){//如果是空,也显示一次,即将第二级专题显示出来

				        $flg1=1;

				     }				

				     while($result_array_in[$j][0] or $flg1){	

				         $temp2=$result_array_in[$j][0];

				         $temp2_name=strip_tags($result_array_in[$j]["SPEC_NAME"]);	

				         $sqldo_in_in="select spec_id,spec_name from basespec where spec_father='$temp2'";

				         $result_array_in_in=$cla->db_query($sqldo_in_in);

				         $k=0;

				         $flg2=0;

				         if($result_array_in_in[$k][0]==""){//如果是空,也显示一次,即将第三级专题显示出来

				              $flg2=1;

				          }				

				         while(($result_array_in_in[$k][0]<>"") or ($flg2<>0) or ($flg1<>0)){	

				              $temp3=$result_array_in_in[$k]['SPEC_ID'];

				              $temp3_name=strip_tags($result_array_in_in[$k]['SPEC_NAME']);				

                              echo  "<option value=";

                              if($temp3){if($temp3==$array[column3]){echo $temp3.' selected';}else{echo $temp3;}}

							     elseif($temp2){if($temp2==$array[column3]){echo $temp2.' selected';}else{echo $temp2;}}

							     elseif($temp1){if($temp1==$array[column3]){echo $temp1.' selected';}else{echo $temp1;}}

							  echo "> ";

                              echo "$temp1_name";

							  if($temp2_name){ echo ".$temp2_name";if($temp3_name) echo".$temp3_name";}

					           echo " </option>";

                         		 $flg1=0; $flg2=0; $k++;

						 }//第四级

					     $j++;

					}//第三级

			        $old=$result_array[$i][0];

					$i++;

					echo "<option value=''>*********************************************</option>";

				}//第二级

				?>

          </select>

          <input name="Submit73" type="button" class="input1"  onclick=openwin("select_modle.php?id=3") value="选择模板">

          <input type="hidden" name="newlinkid" value="<?echo $array[newlink];?>">

          <input type="hidden" name="modle" value="<?echo $array[modle];?>">

          <input type="hidden" name="modle1" value="<?echo $array[modle1];?>">

          <input type="hidden" name="modle2" value="<?echo $array[modle2];?>">

          <input type="hidden" name="clas_statue" value="<?echo $array[clas_statue];?>">

        </p></td>

    </tr>

    <tr> 

      <td colspan="2">

        <table width="100%" border="0" cellspacing="0" cellpadding="0">

          <tr>

            <td width="69%"> 

              <textarea name="newtext" cols="80" rows="30" class="input1"><?echo $array[newtext];?></textarea>

            </td>

            <td width="31%" valign="top" bgcolor="#FFFFFF" bordercolor="#FFFFFF"> 

              <table width="100%" border="0" cellspacing="0" cellpadding="0">

                <tr> 

                  <td width="791">链接文本 

                    <input name="linktext" type="text" class="input1" size="30"></td>

                </tr>

                <tr> 

                  <td>新的地址 

                    <input name="newlink" type="text" class="input1" value="http://" size="30"></td>

                </tr>

                <tr> 

                  <td>原链接地址 

                    <input name="oldlink" type="text" class="input1" value="http://" size="30"></td>

                </tr>

                <tr> 

                  <td><input name="Submit3" type="button" class="input1"  onClick=addlink() value="加连接" > 

                    <input name="Submit4" type="button" class="input1"  onClick=modilink() value="修改链接" ></td>

                </tr>

                <tr> 

                  <td height="47">&nbsp;</td>

                </tr>

                <tr> 

                  <td>修饰文本 

                    <input name="moditext" type="text" class="input1" size="30"></td>

                </tr>

                <tr> 

                  <td>新色 

                    <select name="newcolor" class="input1">

                      <option style="color: #9999ff"value="#9999ff" >██</option>

                      <option style="color: #ff3333"value="#ff3333">██</option>

                      <option style="color: #000000" value="#000000"selected>██ 

                      </option>

                      <option style="color: #000088"value="#000088">██ </option>

                      <option style="color: #0000ff"value="#0000ff">██ </option>

                      <option style="color: #008800"value="#008800">██ </option>

                      <option style="color: #008888"value="#008888">██ </option>

                      <option style="color: #0088ff"value="#0088ff">██ </option>

                      <option style="color: #880000"value="#880000">██ </option>

                      <option style="color: #aa00cc"value="#aa00cc">██ </option>

                      <option style="color: #8800ff"value="#8800ff">██ </option>

                      <option style="color: #888800"value="#888800">██ </option>

                      <option style="color: #888888"value="#888888">██ </option>

                      <option style="color: #ccaa00"value="#ccaa00">██ </option>

                      <option style="color: #8888ff"value="#8888ff">██ </option>

                      <option style="color: #ff0000"value="#ff0000">██ </option>

                      <option style="color: #ff0088"value="#ff0088">██ </option>

                      <option style="color: #ff00ff"value="#ff00ff">██ </option>

                      <option style="color: #ff8800"value="#ff8800">██ </option>

                      <option style="color: #ff0000"value="#ff0000">██ </option>

                      <option style="color: #ff88ff"value="#ff88ff">██ </option>

                      <option style="color: #3388aa"value="#3388aa">██ </option>

                    </select>

                    原色 

                    <select name="oldcolor" class="input1">

                      <option style="color: #9999ff"value="#9999ff" >██</option>

                      <option style="color: #ff3333"value="#ff3333">██</option>

                      <option style="color: #000000" value="#000000"selected>██ 

                      </option>

                      <option style="color: #000088"value="#000088">██ </option>

                      <option style="color: #0000ff"value="#0000ff">██ </option>

                      <option style="color: #008800"value="#008800">██ </option>

                      <option style="color: #008888"value="#008888">██ </option>

                      <option style="color: #0088ff"value="#0088ff">██ </option>

                      <option style="color: #880000"value="#880000">██ </option>

                      <option style="color: #aa00cc"value="#aa00cc">██ </option>

                      <option style="color: #8800ff"value="#8800ff">██ </option>

                      <option style="color: #888800"value="#888800">██ </option>

                      <option style="color: #888888"value="#888888">██ </option>

                      <option style="color: #ccaa00"value="#ccaa00">██ </option>

                      <option style="color: #8888ff"value="#8888ff">██ </option>

                      <option style="color: #ff0000"value="#ff0000">██ </option>

                      <option style="color: #ff0088"value="#ff0088">██ </option>

                      <option style="color: #ff00ff"value="#ff00ff">██ </option>

                      <option style="color: #ff8800"value="#ff8800">██ </option>

                      <option style="color: #ff0000"value="#ff0000">██ </option>

                      <option style="color: #ff88ff"value="#ff88ff">██ </option>

                      <option style="color: #3388aa"value="#3388aa">██ </option>

                    </select> </td>

                </tr>

                <tr> 

                  <td><input name="Submit5" type="button" class="input1" onClick=addcolor() value="加修饰"> 

                    <input name="Submit6" type="button" class="input1"  onClick=modicolor() value="改修饰"></td>

                </tr>

              </table>

              <p>&nbsp;</p>

              </td>

          </tr>

        </table>

      </td>

	  

    </tr>

    <tr valign="top"> 

      <td height="35" width="111">来源: </td>

      <td height="35" width="661"> 

        <textarea name="newsource" cols="90" rows="2" class="input1"><?echo $array[newsource];?></textarea>

      </td>

    </tr>

    <tr> 

      <td width="111" height="47" valign="top">来源说明:</td>

      <td width="661" height="47"> 

        <textarea name="newsourcestr" cols="90" rows="6" class="input1"><?echo $array[newsourcestr];?></textarea>

      </td>

    </tr>

    <tr> 

      <td colspan="2" height="20"> 

        <input name="file1" type="file" class="input1">

        <input name="pic1" type="text" class="input1" value="<? echo substr($array[pic1],1,(strlen($array[pic1])-1));?>" size="60" >  

         <input type=hidden name=pic_class1 value=<?echo substr($array[pic1],0,1); ?>>

	   <?  if(substr($array[pic1],0,1)<>'0'){echo '<input type="button" name="Button" value="预览" class="input1"onclick=preview(document.form1.file1.value,1) >';}

	       else{echo '<input type="button" name="Button" value="预览" class="input1"onclick=preview(document.form1.file1.value,0) >';} ?>

																			

      </td>

    </tr>

    <tr> 

      <td colspan="2"> 

        <input name="file2" type="file" class="input1">

        <input name="pic2" type="text" class="input1" value="<? echo substr($array[pic2],1,(strlen($array[pic2])-1));?>" size="60" >  

         <input type=hidden name=pic_class2 value=<?echo substr($array[pic2],0,1); ?>>

	   <?  if($array[pic2]!='0'){echo '<input type="button" name="Button" value="预览" class="input1"onclick=preview(document.form1.file2.value,2) >';}

	   else{echo '<input type="button" name="Button" value="预览" class="input1"onclick=preview(document.form1.file2.value,0) >';}

	   ?>

      </td>

    </tr>

    <tr> 

      <td colspan="2"> <input name="file3" type="file" class="input1"> 

        <input name="pic3" type="text" class="input1" value="<? echo substr($array[pic3],1,(strlen($array[pic3])-1));?>" size="60" >  

         <input type=hidden name=pic_class3 value=<?echo substr($array[pic3],0,1); ?>>

	   <?  if($array[pic3]!='0'){echo '<input type="button" name="Button" value="预览" class="input1"onclick=preview(document.form1.file3.value,3) >';}

	    else{echo '<input type="button" name="Button" value="预览" class="input1"onclick=preview(document.form1.file3.value,0) >';}

	   ?>

      </td>

    </tr>

    <tr> 

      <td colspan="2"> 

        <input name="file4" type="file" class="input1">

        <input name="pic4" type="text" class="input1" value="<? echo substr($array[pic4],1,(strlen($array[pic4])-1));?>" size="60" >  

         <input type=hidden name=pic_class4 value=<?echo substr($array[pic4],0,1); ?>>

	   <?  if($array[pic4]!='0'){echo '<input type="button" name="Button" value="预览" class="input1"onclick=preview(document.form1.file4.value,4) >';}

	   else{echo '<input type="button" name="Button" value="预览" class="input1"onclick=preview(document.form1.file4.value,0) >';}

	   ?>

      </td>

    </tr>

    <tr> 

      <td colspan="2"> 

        <input name="file5" type="file" class="input1">

        <input name="pic5" type="text" class="input1" value="<? echo substr($array[pic5],1,(strlen($array[pic5])-1));?>" size="60" >  

         <input type=hidden name=pic_class5 value=<?echo substr($array[pic5],0,1); ?>>

	   <?  if($array[pic5]!='0'){echo '<input type="button" name="Button" value="预览" class="input1"onclick=preview(document.form1.file5.value,5) >';}

	   else{echo '<input type="button" name="Button" value="预览" class="input1"onclick=preview(document.form1.file5.value,0) >';}

	   ?>

      </td>

    </tr>

    <tr> 

      <td colspan="2"> 

        <input name="Button" type="button" class="input1" onclick=check() value=" 提 交 ">

        <input name="Submit2" type="button" class="input1" value=" 取 消 "> </td>

    </tr>

    <tr> 

      <td colspan="2">&nbsp;</td>

    </tr>

  </table>

</form>

</body>

</html>

<?

$cla->db_logoff();?>

⌨️ 快捷键说明

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