本文整理匯總了PHP中design::table_cell方法的典型用法代碼示例。如果您正苦於以下問題:PHP design::table_cell方法的具體用法?PHP design::table_cell怎麽用?PHP design::table_cell使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類design
的用法示例。
在下文中一共展示了design::table_cell方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: session_start
require_once "functions.php";
session_start();
security::redirect_if_not_loggedin();
$Guid = costant::desktop_guid();
if (isset($_GET["DeleteAttach"])) {
attachments::delete_attachment_by_name($_GET["DeleteAttach"]);
}
if (isset($_FILES['UploadedAttachments']) && isset($_POST["Attachment_TrId"])) {
$TrNumber = (int) $_POST['Attachment_TrId'];
$FileName = $_FILES['UploadedAttachments']['name'];
$FileExtension = substr($FileName, strpos($FileName, ".") + 1, strlen($FileName));
$NewFileName = "Transaction_" . $TrNumber . "_Attach" . (attachments::get_number_of_attachments($TrNumber) + 1) . "." . $FileExtension;
move_uploaded_file($_FILES['UploadedAttachments']['tmp_name'], "attachments/" . $NewFileName);
echo $NewFileName;
}
if (isset($_GET["AttachmentsTable"])) {
$TrId = $_GET["AttachmentsTable"];
$Attachments = attachments::get_attachments_filename_array($TrId, true);
echo "<table class = 'table'>";
echo "<tbody>";
for ($i = 0; $i < sizeof($Attachments); $i++) {
echo "<tr>";
$File = $Attachments[$i];
design::table_cell(substr($File, strpos($File, "Attach"), strlen($File)), "");
design::table_cell("<a href='services.php?guid={$Guid}&download_attachment={$File}'>\n <span class='glyphicon glyphicon-download-alt'> </span> Open</a>", "text_align_right");
design::table_cell("<a href='#' onclick='attachment_delete(\"{$File}\",{$TrId});return false;'>\n <span class='glyphicon glyphicon-remove'> </span> Delete</a>", "text_align_right");
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
}
示例2: number_format
design::table_cell($TrCategoryShow, "");
}
}
//AMOUNT
$TrAmountShow = number_format($resultarray[$i]["Amount"], 2, ",", "");
design::table_cell($TrAmountShow, "text_align_right td_size_5");
//NOTES
$TrNotesShow = $resultarray[$i]["Notes"];
$NotesHTMLCode = "";
if ($TrNotesShow != "" && $TrNotesShow != "None") {
$NotesHTMLCode .= "<span class='glyphicon glyphicon-info-sign' data-toggle='tooltip' title='{$TrNotesShow}' id='tooltip_notes_{$lineid}'></span> ";
}
if (attachments::get_number_of_attachments($lineid) > 0) {
$NotesHTMLCode .= "<span class='glyphicon glyphicon-paperclip'></span>";
}
design::table_cell($NotesHTMLCode, "text_align_center");
//DELETE
echo "<td class ='text_align_center'>";
echo "<input type='checkbox' name='TrDelete[]' value='{$lineid}' />";
echo "</td>";
//EDIT
echo "<td class ='text_align_center'>";
echo "<input type='radio' name='TrEdit[]' value='{$lineid}' />";
echo "</td>";
echo "</tr>";
}
}
echo "</tbody>";
echo "</table>";
echo "</div>\n";
echo "<br />";