Guest User

Untitled

a guest
Apr 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. default:
  2.  
  3. $sql="SELECT * FROM title;";
  4. $ro=mysqli_query($link,$sql);
  5. $row=mysqli_fetch_array($ro);
  6.  
  7. ?>
  8. <p class="t cent botli">網站標題管理</p>
  9. <form method="post" action="api.php?do=upTitle">
  10. <table width="100%">
  11. <tr class="yel">
  12. <td width="40%">網站標題</td>
  13. <td width="30%">替代文字</td>
  14. <td width="7%">顯示</td>
  15. <td width="7%">刪除</td>
  16. <td width="14%"></td>
  17. </tr>
  18. <?
  19. do{
  20. ?>
  21. <tr>
  22. <td><img src="./image/<?=$row['file'];?>" style="width:300px;height:30px;"></td>
  23. <td><input type="text" name="text[]" value="<?=$row['text'];?>" style="width:95%;"/></td>
  24. <td class="ct"><input type="radio" name="show" value="<?=$row['seq'];?>" <?=($row['up']==1)?"checked":"";?>/></td>
  25. <td class="ct"><input type="checkbox" name="del<?=$row['seq'];?>" value="<?=$row['seq'];?>"/></td>
  26. <td><input type="button" onclick="op('#cover','#cvr','view.php?do=upTitle&seq=<?=$row['seq'];?>')" value="更新圖片"></td>
  27. <input type="hidden" name="seq[]" value="<?=$row['seq'];?>"/>
  28. </tr>
  29. <?
  30. }while($row=mysqli_fetch_array($ro));
  31. ?>
  32. </table>
  33. <table style="margin-top:40px; width:70%;">
  34. <tr>
  35. <td width="200px"><input type="button" onclick="op('#cover','#cvr','view.php?do=title')" value="新增網站標題圖片"></td>
  36. <td class="cent">
  37. <input type="hidden" name="table" value="title">
  38. <input type="submit" value="修改確定">
  39. <input type="reset" value="重置">
  40. </td>
  41. </tr>
  42. </table>
  43. </form>
  44. <?
  45. break;
Add Comment
Please, Sign In to add comment