📄 templates.php
字号:
<tr><td>$t[tablebit_start]$dplang[question_title] $t[tablebit_end] </td></tr><tr><td><%if $error_subject%><table class="error_table" cellpadding="3" width="100%"><tr><td><%endif%>$t[tableelement_start]<input type="text" name="subject" value="$_REQUEST[subject]" size="45"/>$t[tableelement_end]<%if $error_subject%></td></tr></table><%endif%></td></tr><tr><td><%!-- Email --!%><table width="100%" cellspacing="0" cellpadding="0"><tr><%if $email_html%><td valign="top">$t[tablebit_start]$dplang[question_email] $t[tablebit_end]<br /><%if $error_email%><table class="error_table" cellpadding="3" width="100%"><tr><td><%endif%>$t[tableelement_start] $email_html $t[tableelement_end]<%if $error_email%></td></tr></table><%endif%></td><td width="22"><img src="./images/spacer.gif" width="12" height="13" hspace="5" /></td><%endif%><td valign="top"><%!-- Category --!%><%if $settings[category_user_viewable] AND $settings[category_user_editable] AND $settings[category_user_start] %>$t[tablebit_start]$dplang[question_categorise] $t[tablebit_end]<br /><%if $error_category%><table class="error_table" cellpadding="3" width="100%"><tr><td><%endif%>$t[tableelement_start] $category_html $t[tableelement_end]<%if $error_category%></td></tr></table><%endif%></td><td width="22"><img src="./images/spacer.gif" width="12" height="13" hspace="5" /></td><%endif%><%!-- Priority --!%><%if $settings[priority_user_viewable] AND $settings[priority_user_editable]%><td valign="top">$t[tablebit_start]$dplang[question_prioritise] $t[tablebit_end]<br /><%if $error_priority%><table class="error_table" cellpadding="3" width="100%"><tr><td><%endif%>$t[tableelement_start] $priority_html $t[tableelement_end]<%if $error_priority%></td></tr></table><%endif%></td><%endif%></tr></table><%if $custom %><%!-- Custom Fields --!%><tr><td>$t[tablebit_start]$dplang[further] $t[tablebit_end]</td></tr><tr><td><table width="100%" cellpadding="2"> <%loop $custom%> <%if checkvalue($loop_iteration, 2)%></tr><tr><%endif%><td width="50%"><%if $custom[error]%><table class="error_table" cellpadding="3" width="97%"><%else%><table class="standard_border" cellpadding="3" width="97%"><%endif%> <tr><td><b>$custom[name]</b><br />$custom[description]</td><td align="$this_language[align]">$custom[html]</td></tr></table></td><%endloop%></table></td></tr> <%endif%><%if $settings[attachments_user]%><%!-- Attachments --!%><tr><td>$t[tablebit_start]$dplang[add_attachment] $t[tablebit_end] </td></tr><tr><td><table width="100%"><tr><td nospan="nospan" width="300">$t[tableelement_start] <input type="file" class="button" name="attachment" /> <input type="submit" class="button" name="attachment_upload" value="$dplang[add]" class="button" /><input type="hidden" name="tempticketid" value="$tempticketid" />$t[tableelement_end]</td><%!-- Attachment table --!%><%if $attach%><td width="32"><img src="./images/spacer.gif" width="12" height="13" hspace="5" /></td><td align="center"><table width="100%" border="0" cellspacing="2" cellpadding="3" class="tablebox"><input type="hidden" name="delattachid" value=""><tr> <td class="tablebox_header"><b>Filename:</b></td><td class="tablebox_header"><b>Filesize:</b></td><td class="tablebox_header"><b>Delete:</b></td></tr><%loop $attach%><tr> <td class="tablebox_td">$attach[name]</td><td class="tablebox_td">$attach[filesize]</td><td class="tablebox_td"><a href="javascript:document.deskproform.delattachid.value=\'$attach[id]\';document.deskproform.submit();">delete</a></td></tr><%endloop%></table></td><%endif%></tr></table></td></tr><%endif%><%!-- Message --!%><tr><td>$t[tablebit_start]$dplang[question_your] $t[tablebit_end] </td></tr><tr><td><%if $error_post%><table class="error_table" cellpadding="3" width="100%"><tr><td><%endif%>$t[tableelement_start]<textarea cols="80" rows="8" name="message">$_REQUEST[message]</textarea> $t[tableelement_end]<%if $error_post%></td></tr></table><%endif%></td></tr><%!-- Finished --!%><tr><td>$t[tablebit_start]$dplang[when_finished] $t[tablebit_end] </td></tr><tr><td><img src="./images/spacer.gif" width="25" height="21" /><input type="submit" class="button" name="Submit" value="$dplang[question_create]" class="button" /> <%if $show_spellcheck%><input type="button" class="button" name="Button" value="Spell Check" onClick="return spellCheck(\'deskproform\', \'message\');"><%endif%></td></tr><tr><td>$t[tablebitall]</td></tr></form>$t[bordertable_end]$footer'); $template_data[] = array('category' => '8', 'name' => 'ERROR_default', 'description' => 'The error page', 'template_unparsed' => '$header$t[bordertable_start]<tr><td valign="top" class="title" height="10"><b><span class="emphasis">// </span><%if $notice%>$dplang[error_notice]<%else%>$dplang[error]<%endif%></b></td></tr><tr><td><b>$message</b></td></tr><tr><td>$dplang[error_contact] <a href="mailto:$settings[email_offemail]">$settings[email_offemail]</a></td></tr>$t[bordertable_end]<br />$footer'); $template_data[] = array('category' => '10', 'name' => 'FAQ_article', 'description' => 'FAQ article display page', 'template_unparsed' => '$header$faq_header<table width="$r[outer_tablewidth]" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td width="160" valign="top"><table width="160" border="0" cellspacing="2" cellpadding="3" class="tablebox""><tr> <td class="tablebox_header"">$dplang[ref]</td> </tr> <tr> <td class="tablebox_td">$article[ref]</td> </tr> <tr> <td class="tablebox_header"">$dplang[article_created_by]</td> </tr> <tr> <td class="tablebox_td">$article[tech_made]</td> </tr> <tr> <td class="tablebox_header"">$dplang[date_created]</td> </tr> <tr> <td class="tablebox_td">$article[date_made]</td> </tr> <%if $article[date_modified]%> <tr> <td class="tablebox_header"">$dplang[article_updated_by]</td> </tr> <tr> <td class="tablebox_td">$article[tech_modified]</td> </tr> <tr> <td class="tablebox_header"">$dplang[date_updated]</td> </tr> <tr> <td class="tablebox_td">$article[date_modified]</td> </tr> <%endif%> </table><br /><br /><table cellpadding="3"><tr><td width="5"></td><td><img src="./images/faq/receive_updates.gif" /></td><td><a href="faq.php?do=addarticlesub&articleid=$article[id]">$dplang[email_updates]</a></td></tr><tr><td width="5"></td><td><img src="./images/faq/print_article.gif" /></td><td><a href="javascript:openWindow(\'faq.php?do=printarticle&articleid=$article[id]\', 650, 500, \'print\')">$dplang[print_version]</a></td></tr><tr><td width="5"></td><td><img src="./images/faq/email_article.gif" /></td><td><a href="javascript:openWindow(\'email_article.php?do=email_article&articleid=$article[id]\', 400, 400, \'faq\')">$dplang[email_article]</a></td></tr><tr><td width="5"></td><td><img src="./images/faq/add_comment.gif" /></td><td><a href="javascript:openWindow(\'rate.php?do=addcomment&article=$article[id]\', 400, 225, \'faq\')">$dplang[add_comment]</a></td></tr></table></td><td width="15"><img src="./images/spacer.gif" width="15" height="13" hspace="0" /></td><td valign="top"><table class="standard_border" width="100%" border="0" cellspacing="0" cellpadding="0" align="$this_language[align]"><tr> <td><table width="95%" align="center" border="0" cellspacing="0" cellpadding="8"><tr><td valign="top" class="title" height="10"><b><span class="emphasis">// </span>$article[title]</b></td></tr><tr><td>$t[tablebit_start]$dplang[question] $t[tablebit_end]</td></tr><tr><td ><span class="emphasis">$article[question]</span></td></tr><tr><td>$t[tablebit_start]$dplang[answer] $t[tablebit_end]</td></tr><tr><td >$article[answer]</td></tr><%if $attachment%><tr><td>$t[tablebit_start]$dplang[attachments] $t[tablebit_end] </td></tr><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="2" class="tablebox"><tr> <td class="tablebox_header" align="center">$dplang[filename]</td><td class="tablebox_header" align="center">$dplang[size]</td><td class="tablebox_header" align="center">$dplang[download]</td></tr><%loop $attachment%>$t[row_spacer]<tr> <td class="tablebox_td">$attachment[filename]</td><td class="tablebox_td">$attachment[filesize]kb</td><td class="tablebox_td" align="center"><a href="faq.php?do=download&id=$attachment[id]"><img src="./images/bul040.gif" width="11" height="8" border="0" /></a></td></tr> <%endloop%></table><%endif%><%if $settings[faq_rating]%><tr><td><table align="right" border="0" cellspacing="4" class="tablebox" cellpadding="0" align="center"> <tr> <td class="tablebox_header"> $dplang[how_helpfull]</td> </tr> <tr> <td align="$this_language[align]"> <table width="272" border="0" cellspacing="0" cellpadding="0"> <form> <tr> <td>100%</td> <td> <input type="radio" name="radiobutton" value="radiobutton" onclick="openWindow(\'rate.php?do=rate&article=$articleid&rating=100\', 400, 275, \'faq\')" /> </td> <td>80%</td> <td> <input type="radio" name="radiobutton" value="radiobutton" onclick="openWindow(\'rate.php?do=rate&article=$articleid&rating=80\', 400, 275, \'faq\')" /> </td> <td>60%</td> <td> <input type="radio" name="radiobutton" value="radiobutton" onclick="openWindow(\'rate.php?do=rate&article=$articleid&rating=60\', 400, 275, \'faq\')" /> </td> <td>40%</td> <td> <input type="radio" name="radiobutton" value="radiobutton" onclick="openWindow(\'rate.php?do=rate&article=$articleid&rating=40\', 400, 275, \'faq\')" /> </td> <td>20%</td> <td> <input type="radio" name="radiobutton" value="radiobutton" onclick="openWindow(\'rate.php?do=rate&article=$articleid&rating=20\', 400, 275, \'faq\')" /> </td> <td>0%</td> <td> <input type="radio" name="radiobutton" value="radiobutton" onclick="openWindow(\'rate.php?do=rate&article=$articleid&rating=0\', 400, 275, \'faq\')" /> </td> </tr> </form> </table> </td> </tr> </table></td></tr><%endif%><%if $related_article%><tr><td>$t[tablebit_start]$dplang[related_articles] $t[tablebit_end]</td></tr><tr><td><table border="0" cellspacing="0" cellpadding="3"><%loop $related_article%> <tr> <td height="20" align="center"> <img src="./images/faq/related_article.gif" /> </td> <td height="20"> <a href="faq.php?do=article&articleid=$related_article[id]">$related_article[title]</a> </td> <td align="$this_language[align]" nospan="nospan"> ($related_article[date]) </td> </tr><%endloop%></table></td></tr><%endif%></table></td></tr></table></td></tr></table><br />$footer'); $template_data[] = array('category' => '4', 'name' => 'REG_register', 'description' => 'The new account registration page', 'template_unparsed' => '$header$t[bordertable_start]<form method="post" action="register.php" name="deskpro_form"><input type="hidden" name="do" value="submit" /><tr><td valign="top" class="title" height="10"><b><span class="emphasis">// </span>$dplang[create_account]</b></td></tr><%!-- Errors --!%><%if $stop%><tr><td><table class="error_table" cellpadding="3" width="100%"><tr><td><b>$dplang[errors_resubmit]</b><br /><br /><%if $error_category%><span class="error_text_bullet">»</span> $dplang[question_e_category]<br /><%endif%><%if $error_match_password%><span class="error_text_bullet">»</span> $dplang[register_e_pass_match]<br /><%endif%><%if $error_short_password%><span class="error_text_bullet">»</span> $dplang[register_e_pass_short]<br /><%endif%><%if $error_duplicate_username%><span class="error_text_bullet">»</span> $dplang[register_e_username]<a href="login.php?do=lostpass_u&username=$_REQUEST[username]">$dplang[have_lostpass]</a><br /><%endif%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -