【发布时间】:2014-05-30 13:50:58
【问题描述】:
我正在尝试在 PHP 中为移动 Web 应用程序扩展我的表,并且我有很多字段回显。
有没有一种巧妙的方法来设置这些样式,因为它们现在太远了
echo "<table cellspacing=\"0\" class=\"recordsTableBG\"> <thead class=\"recordsTableHeader\" >";
echo '<tr class="alternateRowColor">';
echo '<tr><th>id</th><th>amount</th><th>submission</th><th>project_id</th><th>status</th><th>description</th><th>delete</th></tr></thead>';
//echo "<form method='post' action=\"pmsystem.php?page=sentbox\">".
echo "<form method='post' action=\"viewrecordsemp1.php\">".
" <input type=\"hidden\" name=\"deleteMessage\" value=\"yes\">".
" <input type=\"hidden\" name=\"id\" value=\"$id\">".
"<td><b>$id </b> <br></td>".
"<td>$amount</a><br/></td>".
"<td>$submission</a><br/></td>".
"<td>$project_id</a><br/></td>".
"<td>$status</a><br/></td>".
"<td>$description</a><br/></td>".
" <input type=\"hidden\" name=\"thisPage\" value=\"$thisPage\">".
" <td> <input type=\"image\" src=\"images/delete.jpg\" alt=\"Delete contact\" onClick = \"return confirm('$first_name are you sure you want to delete this message?')\";></td>".
" </form>";
echo "</table>";
echo "<hr = '1'>";
【问题讨论】:
-
由 js 开发人员清晰编码
标签: php css web-applications