0 Comments

使用isok()函数实现页面跳转

发布于:2012-11-24  |   作者:广州网站建设  |   已聚集:人围观
使用isok()函数实现页面跳转

该函数的功能是在操作成功后显示跳转的页面,该页面会有提示操作的面板。函数代码如下:

广州网站设计
  1. //成功跳转页面  
  2. function isok($isok){  
  3. $output="<html> 
  4. <head> 
  5. <head> 
  6. <link rel=\"stylesheet\" href=\"css/style.css\"> 
  7. <table cellspacing=1 cellpadding=3 width=55bgcolor=\"#000000\" class=  
  8. \"fonts\" align=\"center\"> 
  9.   <tr bgcolor=\"#9999ff\">   
  10.     <td height=\"11\" align=\"center\" bgcolor=\"#999999\" class=\  
  11.     "mycss\">   
  12.       <div align=\"left\"> 系统消息:成功!</div> 
  13.     </td> 
  14.   </tr> 
  15.   <tr>   
  16.     <td align=\"center\" bgcolor=\"#FFFFFF\" class=\"mycss\">   
  17.         <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=  
  18.         \"3\"> 
  19.           <tr>   
  20.             <br> 
  21.           <td colspan=\"2\"><font color=\"red\">".$isok."</font> 
  22. <p><a href=\"index.php\">返回管理首页  
  23.               </a></p><p><a href=\"add.php\">添加新的广告代码  
  24.               </a></p> 
  25.           </td> 
  26.           </tr></table> 
  27. </table>";  
  28. echo $output;   
  29. exit;  
  30. }  

【代码解读】

通过echo()函数输出编辑好的HTML代码,内容为提示操作成功,并引导用户下一步的操作。广州网站建设

标签:
飞机