本文整理汇总了PHP中hesk_makeJsString函数的典型用法代码示例。如果您正苦于以下问题:PHP hesk_makeJsString函数的具体用法?PHP hesk_makeJsString怎么用?PHP hesk_makeJsString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了hesk_makeJsString函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: hesk_handle_messages
})
</script>
</div>
<div class="col-md-8">
<?php
/* This will handle error, success and notice messages */
hesk_handle_messages();
if ($hesk_settings['cust_urgency']) {
hesk_show_notice($hesklang['cat_pri_info'] . ' ' . $hesklang['cpri']);
}
?>
<h3><?php
echo $hesklang['manage_cat'];
?>
<a href="javascript:void(0)" onclick="javascript:alert('<?php
echo hesk_makeJsString($hesklang['cat_intro']);
?>
')"><i class="fa fa-question-circle settingsquestionmark"></i></a></h3>
<div class="footerWithBorder blankSpace"></div>
<table class="table table-hover">
<tr>
<th><?php
echo $hesklang['id'];
?>
</th>
<th><?php
echo $hesklang['cat_name'];
?>
</th>
<th><?php
echo $hesklang['priority'];
示例2: confirm_delete
')"><?php
echo $hesklang['ticket_tpl'];
?>
[?]</a></li>
</ul>
</div>
<!-- TABS -->
<br />
<script language="javascript" type="text/javascript"><!--
function confirm_delete()
{
if (confirm('<?php
echo hesk_makeJsString($hesklang['delete_tpl']);
?>
')) {return true;}
else {return false;}
}
//-->
</script>
<?php
/* This will handle error, success and notice messages */
hesk_handle_messages();
// Get canned responses from database
$result = hesk_dbQuery('SELECT * FROM `' . hesk_dbEscape($hesk_settings['db_pfix']) . 'ticket_templates` ORDER BY `tpl_order` ASC');
$options = '';
$javascript_messages = '';
$javascript_titles = '';
示例3: hesk_makeJsString
<!-- TABS -->
<div id="tab1" class="tabberlive" style="margin-top:0px">
<ul class="tabbernav">
<?php
// Show a link to reports.php if user has permission to do so
if (hesk_checkPermission('can_run_reports', 0)) {
echo '<li class=""><a title="' . $hesklang['reports_tab'] . '" href="reports.php">' . $hesklang['reports_tab'] . '</a></li>';
}
?>
<li class="tabberactive"><a title="<?php
echo $hesklang['export'];
?>
" href="javascript:void(null);" onclick="javascript:alert('<?php
echo hesk_makeJsString($hesklang['export_intro']);
?>
')"><?php
echo $hesklang['export'];
?>
[?]</a></li>
</ul>
<div class="tabbertab">
<!-- ** START EXPORT FORM ** -->
<form name="showt" action="export.php" method="get">
示例4: hesk_input
</b> (<?php
echo $hesklang['max_chars'];
?>
)<b>:</b><br /><input type="text" name="name" size="40" maxlength="40"
<?php
if (isset($_SESSION['catname'])) {
echo ' value="' . hesk_input($_SESSION['catname']) . '" ';
}
?>
/></p>
<p><b><?php
echo $hesklang['def_pri'];
?>
</b> [<b><a href="javascript:void(0)" onclick="javascript:alert('<?php
echo hesk_makeJsString($hesklang['cat_pri']);
?>
')">?</a></b>]<br />
<select name="priority">
<?php
// Default priority: low
if (!isset($_SESSION['cat_priority'])) {
$_SESSION['cat_priority'] = 3;
}
// List possible priorities
foreach ($priorities as $value => $info) {
echo '<option value="' . $value . '"' . ($_SESSION['cat_priority'] == $value ? ' selected="selected"' : '') . '>' . $info['text'] . '</option>';
}
?>
</select></p>
示例5: mail_list_messages
//.........这里部分代码省略.........
// end PAGES > 1
// Get messages from the database
$res = hesk_dbQuery("SELECT `id`, `from`, `to`, `subject`, `dt`, `read` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "mail` WHERE `" . hesk_dbEscape($hesk_settings['mailtmp']['this']) . "`='" . intval($_SESSION['id']) . "' AND `deletedby`!='" . intval($_SESSION['id']) . "' ORDER BY `id` DESC LIMIT " . intval($limit_down) . " , " . intval($maxresults) . " ");
?>
<form action="mail.php<?php
if ($hesk_settings['mailtmp']['folder'] == 'outbox') {
echo '?folder=outbox';
}
?>
" name="form1" method="post">
<div class="container table-responsive">
<table class="table table-bordered table-hover" style="background: #E0EEEE;">
<tr>
<th class="admin_white" style="width:1px"><input type="checkbox" name="checkall" value="2" onclick="hesk_changeAll(this)" /></th>
<th class="admin_white" style="text-align:left; white-space:nowrap;"><?php
echo $hesklang['m_sub'];
?>
</th>
<th class="admin_white" style="text-align:left; white-space:nowrap;"><?php
echo $hesk_settings['mailtmp']['m_from'];
?>
</th>
<th class="admin_white" style="text-align:left; white-space:nowrap;"><?php
echo $hesklang['date'];
?>
</th>
</tr>
<?php
$i = 0;
while ($pm = hesk_dbFetchAssoc($res)) {
if ($i) {
$color = "admin_gray";
$i = 0;
} else {
$color = "admin_white";
$i = 1;
}
$pm['subject'] = '<a href="mail.php?a=read&id=' . $pm['id'] . '">' . $pm['subject'] . '</a>';
if ($hesk_settings['mailtmp']['this'] == 'to' && !$pm['read']) {
$pm['subject'] = '<b>' . $pm['subject'] . '</b>';
}
$pm['name'] = isset($admins[$pm[$hesk_settings['mailtmp']['other']]]) ? '<a href="mail.php?a=new&id=' . $pm[$hesk_settings['mailtmp']['other']] . '">' . $admins[$pm[$hesk_settings['mailtmp']['other']]] . '</a>' : ($pm['from'] == 9999 ? '<a href="http://www.hesk.com" target="_blank">HESK.com</a>' : $hesklang['e_udel']);
$pm['dt'] = hesk_dateToString($pm['dt'], 0, 0, 0, true);
echo <<<EOC
\t\t\t\t\t<tr>
\t\t\t\t\t<td class="{$color}" style="text-align:left; white-space:nowrap;"><input type="checkbox" name="id[]" value="{$pm['id']}" /> </td>
\t\t\t\t\t<td class="{$color}">{$pm['subject']}</td>
\t\t\t\t\t<td class="{$color}">{$pm['name']}</td>
\t\t\t\t\t<td class="{$color}">{$pm['dt']}</td>
\t\t\t\t\t</tr>
EOC;
}
// End while
?>
</table><!-- end table table-bordered table-hover table-responsive -->
</div>
<div class="container" align="right"><select name="a">
<?php
if ($hesk_settings['mailtmp']['this'] == 'to') {
?>
<option value="mark_read" selected="selected"><?php
echo $hesklang['mo1'];
?>
</option>
<option value="mark_unread"><?php
echo $hesklang['mo2'];
?>
</option>
<?php
}
?>
<option value="delete"><?php
echo $hesklang['mo3'];
?>
</option>
</select>
<input type="hidden" name="token" value="<?php
hesk_token_echo();
?>
" />
<input type="submit" value="<?php
echo $hesklang['execute'];
?>
" onclick="Javascript:if (document.form1.a.value=='delete') return hesk_confirmExecute('<?php
echo hesk_makeJsString($hesklang['mo3']);
?>
?');" class="btn btn-default" />
</form>
<br/><br/>
</div>
<?php
} else {
echo '<div class="container"><i>' . $hesklang['npm'] . '</i></div><br/>';
}
}
示例6: hesk_getAdminButtons
function hesk_getAdminButtons($reply = 0, $white = 1)
{
global $hesk_settings, $hesklang, $ticket, $reply, $trackingID, $can_edit, $can_archive, $can_delete, $isManager;
$options = '<div class="btn-group" style="width: 100%">';
/* Style and mousover/mousout */
$tmp = $white ? 'White' : 'Blue';
$style = 'class="option' . $tmp . 'OFF" onmouseover="this.className=\'option' . $tmp . 'ON\'" onmouseout="this.className=\'option' . $tmp . 'OFF\'"';
/* Lock ticket button */
if ($can_edit) {
if ($ticket['locked']) {
$des = $hesklang['tul'] . ' - ' . $hesklang['isloc'];
$options .= '<a class="btn btn-default" href="lock.php?track=' . $trackingID . '&locked=0&Refresh=' . mt_rand(10000, 99999) . '&token=' . hesk_token_echo(0) . '"><i class="fa fa-unlock"></i> ' . $hesklang['tul'] . '</a> ';
} else {
$des = $hesklang['tlo'] . ' - ' . $hesklang['isloc'];
$options .= '<a class="btn btn-default" href="lock.php?track=' . $trackingID . '&locked=1&Refresh=' . mt_rand(10000, 99999) . '&token=' . hesk_token_echo(0) . '"><i class="fa fa-lock"></i> ' . $hesklang['tlo'] . '</a> ';
}
}
/* Tag ticket button */
if ($can_archive) {
if ($ticket['archive']) {
$options .= '<a class="btn btn-default" href="archive.php?track=' . $trackingID . '&archived=0&Refresh=' . mt_rand(10000, 99999) . '&token=' . hesk_token_echo(0) . '"><i class="fa fa-tag"></i>' . $hesklang['remove_archive'] . '</a> ';
} else {
$options .= '<a class="btn btn-default" href="archive.php?track=' . $trackingID . '&archived=1&Refresh=' . mt_rand(10000, 99999) . '&token=' . hesk_token_echo(0) . '"><i class="fa fa-tag"></i> ' . $hesklang['add_archive'] . '</a> ';
}
}
/* Import to knowledgebase button */
if ($hesk_settings['kb_enable'] && hesk_checkPermission('can_man_kb', 0)) {
$options .= '<a class="btn btn-default" href="manage_knowledgebase.php?a=import_article&track=' . $trackingID . '"><i class="fa fa-lightbulb-o"></i> ' . $hesklang['import_kb'] . '</a> ';
}
/* Print ticket button */
$options .= '<a class="btn btn-default" href="../print.php?track=' . $trackingID . '"><i class="fa fa-print"></i> ' . $hesklang['printer_friendly'] . '</a> ';
/* Edit post */
if ($can_edit) {
$tmp = $reply ? '&reply=' . $reply['id'] : '';
$mgr = $isManager ? '&isManager=true' : '';
$options .= '<a class="btn btn-default" href="edit_post.php?track=' . $trackingID . $tmp . $mgr . '"><i class="fa fa-pencil"></i> ' . $hesklang['edtt'] . '</a> ';
}
/* Delete ticket */
if ($can_delete) {
if ($reply) {
$url = 'admin_ticket.php';
$tmp = 'delete_post=' . $reply['id'];
$img = 'delete.png';
$txt = $hesklang['delt'];
} else {
$url = 'delete_tickets.php';
$tmp = 'delete_ticket=1';
$img = 'delete_ticket.png';
$txt = $hesklang['dele'];
}
$options .= '<a class="btn btn-default" href="' . $url . '?track=' . $trackingID . '&' . $tmp . '&Refresh=' . mt_rand(10000, 99999) . '&token=' . hesk_token_echo(0) . '" onclick="return hesk_confirmExecute(\'' . hesk_makeJsString($txt) . '?\');"><i class="fa fa-ban"></i> ' . $txt . '</a> ';
}
/* Return generated HTML */
$options .= '</div>';
return $options;
}
示例7: hesk_handle_messages
<td>
<?php
/* This will handle error, success and notice messages */
hesk_handle_messages();
?>
<!-- TABS -->
<div id="tab1" class="tabberlive" style="margin-top:0px">
<ul class="tabbernav">
<li class="tabberactive"><a title="<?php
echo $hesklang['reports_tab'];
?>
" href="javascript:void(null);" onclick="javascript:alert('<?php
echo hesk_makeJsString($hesklang['reports_intro']);
?>
')"><?php
echo $hesklang['reports_tab'];
?>
[?]</a></li>
<?php
// Show a link to export.php if user has permission to do so
if (hesk_checkPermission('can_export', 0)) {
echo '<li class=""><a title="' . $hesklang['export'] . '" href="export.php">' . $hesklang['export'] . '</a></li>';
}
?>
</ul>
<div class="tabbertab">
示例8: hesk_handle_messages
')) {return true;}
else {return false;}
}
//-->
</script>
<?php
/* This will handle error, success and notice messages */
hesk_handle_messages();
?>
<h3 style="padding-bottom:5px"><?php
echo $hesklang['manage_users'];
?>
[<a href="javascript:void(0)" onclick="javascript:alert('<?php
echo hesk_makeJsString($hesklang['users_intro']);
?>
')">?</a>]</h3>
<br />
<div align="center">
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="white">
<tr>
<th class="admin_white" style="text-align:left"><b><i><?php
echo $hesklang['name'];
?>
</i></b></th>
<th class="admin_white" style="text-align:left"><b><i><?php
echo $hesklang['email'];
?>
示例9: rand
#$query .= '&asc='.$asc;
$query .= '&limit=' . $maxresults;
$query .= '&archive=' . $archive[2];
$query .= '&s_my=' . $s_my[2];
$query .= '&s_ot=' . $s_ot[2];
$query .= '&s_un=' . $s_un[2];
$query .= '&page=1';
#$query .= '&sort=';
}
$query .= '&asc=';
/* Print the table with tickets */
$random = rand(10000, 99999);
?>
<form role="form" class="form-inline" name="form1" action="delete_tickets.php" method="post" onsubmit="return hesk_confirmExecute('<?php
echo hesk_makeJsString($hesklang['confirm_execute']);
?>
')">
<?php
if (empty($group)) {
hesk_print_list_head();
}
$i = 0;
$group_tmp = '';
$is_table = 0;
$space = 0;
while ($ticket = hesk_dbFetchAssoc($result)) {
// Are we grouping tickets?
if ($group) {
require HESK_PATH . 'inc/print_group.inc.php';
示例10: hesk_handle_messages
}
?>
</div>
</div>
</div>
<div class="col-md-8">
<?php
/* This will handle error, success and notice messages */
hesk_handle_messages();
?>
<form class="form-horizontal" action="manage_ticket_templates.php" method="post" name="form1" role="form">
<h3><?php
echo $hesklang['new_ticket_tpl'];
?>
<a href="javascript:void(0)" onclick="javascript:alert('<?php
echo hesk_makeJsString($hesklang['ticket_tpl_intro']);
?>
')"><i class="fa fa-question-circle settingsquestionmark"></i></a></h3>
<div class="footerWithBorder blankSpace"></div>
<?php
if ($num > 0) {
?>
<div class="form-group">
<div class="col-sm-12">
<div class="radio">
<label>
<input type="radio" name="a" value="new" <?php
echo !isset($_SESSION['canned']['what']) || $_SESSION['canned']['what'] != 'EDIT' ? 'checked=' : '';
?>
>
<?php
示例11: hesk_getAdminButtons
function hesk_getAdminButtons($reply = 0, $white = 1)
{
global $hesk_settings, $hesklang, $ticket, $reply, $trackingID, $can_edit, $can_archive, $can_delete;
$options = '';
/* Style and mousover/mousout */
$tmp = $white ? 'White' : 'Blue';
$style = 'class="option' . $tmp . 'OFF" onmouseover="this.className=\'option' . $tmp . 'ON\'" onmouseout="this.className=\'option' . $tmp . 'OFF\'"';
/* Lock ticket button */
if ($can_edit) {
if ($ticket['locked']) {
$des = $hesklang['tul'] . ' - ' . $hesklang['isloc'];
$options .= '<a href="lock.php?track=' . $trackingID . '&locked=0&Refresh=' . mt_rand(10000, 99999) . '&token=' . hesk_token_echo(0) . '"><img src="../img/unlock.png" width="16" height="16" alt="' . $des . '" title="' . $des . '" ' . $style . ' /></a> ';
} else {
$des = $hesklang['tlo'] . ' - ' . $hesklang['isloc'];
$options .= '<a href="lock.php?track=' . $trackingID . '&locked=1&Refresh=' . mt_rand(10000, 99999) . '&token=' . hesk_token_echo(0) . '"><img src="../img/lock.png" width="16" height="16" alt="' . $des . '" title="' . $des . '" ' . $style . ' /></a> ';
}
}
/* Tag ticket button */
if ($can_archive) {
if ($ticket['archive']) {
$options .= '<a href="archive.php?track=' . $trackingID . '&archived=0&Refresh=' . mt_rand(10000, 99999) . '&token=' . hesk_token_echo(0) . '"><img src="../img/tag.png" width="16" height="16" alt="' . $hesklang['remove_archive'] . '" title="' . $hesklang['remove_archive'] . '" ' . $style . ' /></a> ';
} else {
$options .= '<a href="archive.php?track=' . $trackingID . '&archived=1&Refresh=' . mt_rand(10000, 99999) . '&token=' . hesk_token_echo(0) . '"><img src="../img/tag_off.png" width="16" height="16" alt="' . $hesklang['add_archive'] . '" title="' . $hesklang['add_archive'] . '" ' . $style . ' /></a> ';
}
}
/* Import to knowledgebase button */
if ($hesk_settings['kb_enable'] && hesk_checkPermission('can_man_kb', 0)) {
$options .= '<a href="manage_knowledgebase.php?a=import_article&track=' . $trackingID . '"><img src="../img/import_kb.png" width="16" height="16" alt="' . $hesklang['import_kb'] . '" title="' . $hesklang['import_kb'] . '" ' . $style . ' /></a> ';
}
/* Print ticket button */
$options .= '<a href="../print.php?track=' . $trackingID . '"><img src="../img/print.png" width="16" height="16" alt="' . $hesklang['printer_friendly'] . '" title="' . $hesklang['printer_friendly'] . '" ' . $style . ' /></a> ';
/* Edit post */
if ($can_edit) {
$tmp = $reply ? '&reply=' . $reply['id'] : '';
$options .= '<a href="edit_post.php?track=' . $trackingID . $tmp . '"><img src="../img/edit.png" width="16" height="16" alt="' . $hesklang['edtt'] . '" title="' . $hesklang['edtt'] . '" ' . $style . ' /></a> ';
}
/* Delete ticket */
if ($can_delete) {
if ($reply) {
$url = 'admin_ticket.php';
$tmp = 'delete_post=' . $reply['id'];
$img = 'delete.png';
$txt = $hesklang['delt'];
} else {
$url = 'delete_tickets.php';
$tmp = 'delete_ticket=1';
$img = 'delete_ticket.png';
$txt = $hesklang['dele'];
}
$options .= '<a href="' . $url . '?track=' . $trackingID . '&' . $tmp . '&Refresh=' . mt_rand(10000, 99999) . '&token=' . hesk_token_echo(0) . '" onclick="return hesk_confirmExecute(\'' . hesk_makeJsString($txt) . '?\');"><img src="../img/' . $img . '" width="16" height="16" alt="' . $txt . '" title="' . $txt . '" ' . $style . ' /></a> ';
}
/* Return generated HTML */
return $options;
}
示例12: confirm_delete
// Show a link to banned_ips.php if user has permission to do so
if (hesk_checkPermission('can_ban_ips', 0)) {
echo '<li id="banned-ips"><a title="' . $hesklang['banip'] . '" href="banned_ips.php">' . $hesklang['banip'] . '</a></li> ';
}
// Show a link to status_message.php if user has permission to do so
if (hesk_checkPermission('can_service_msg', 0)) {
echo '<li id="service-msg-tools"><a title="' . $hesklang['sm_title'] . '" href="service_messages.php">' . $hesklang['sm_title'] . '</a></li> ';
}
?>
</ul>
<script language="javascript" type="text/javascript"><!--
function confirm_delete()
{
if (confirm('<?php
echo hesk_makeJsString($hesklang['delban_confirm']);
?>
')) {return true;}
else {return false;}
}
//-->
</script>
<div class="container tab-pane active" role="tabpanel" id="b-email">
<?php
/* This will handle error, success and notice messages */
hesk_handle_messages();
?>
<form action="banned_emails.php" method="post" name="form1">
示例13: confirm_delete
if (hesk_checkPermission('can_man_ticket_tpl', 0)) {
echo '<li class=""><a title="' . $hesklang['ticket_tpl'] . '" href="manage_ticket_templates.php">' . $hesklang['ticket_tpl'] . '</a></li>';
}
?>
</ul>
</div>
<!-- TABS -->
<br />
<script language="javascript" type="text/javascript"><!--
function confirm_delete()
{
if (confirm('<?php
echo hesk_makeJsString($hesklang['delete_saved']);
?>
')) {return true;}
else {return false;}
}
function hesk_insertTag(tag) {
var text_to_insert = '%%'+tag+'%%';
hesk_insertAtCursor(document.form1.msg, text_to_insert);
document.form1.msg.focus();
}
function hesk_insertAtCursor(myField, myValue) {
if (document.selection) {
myField.focus();
sel = document.selection.createRange();
示例14: hesk_handle_messages
myField.value += myValue;
}
}
//-->
</script>
<?php
/* This will handle error, success and notice messages */
hesk_handle_messages();
?>
<h3 style="padding-bottom:5px"><?php
echo $hesklang['manage_saved'];
?>
[<a href="javascript:void(0)" onclick="javascript:alert('<?php
echo hesk_makeJsString($hesklang['manage_intro']);
?>
')">?</a>]</h3>
<br />
<?php
$result = hesk_dbQuery('SELECT * FROM `' . hesk_dbEscape($hesk_settings['db_pfix']) . 'std_replies` ORDER BY `reply_order` ASC');
$options = '';
$javascript_messages = '';
$javascript_titles = '';
$i = 1;
$j = 0;
$num = hesk_dbNumRows($result);
if ($num < 1) {
echo '<p>' . $hesklang['no_saved'] . '</p>';
示例15: hesk_handle_messages
</td>
</tr>
<tr>
<td>
<?php
/* This will handle error, success and notice messages */
hesk_handle_messages();
?>
<h3><?php
echo $hesklang['settings'];
?>
[<a href="javascript:void(0)" onclick="javascript:alert('<?php
echo hesk_makeJsString($hesklang['settings_intro']) . '\\n\\n' . hesk_makeJsString($hesklang['all_req']);
?>
')">?</a>]</h3>
<?php
$hesklang['err_custname'] = addslashes($hesklang['err_custname']);
?>
<script language="javascript" type="text/javascript"><!--
function hesk_checkFields()
{
d=document.form1;
// GENERAL