• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP hesk_token_echo函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中hesk_token_echo函数的典型用法代码示例。如果您正苦于以下问题:PHP hesk_token_echo函数的具体用法?PHP hesk_token_echo怎么用?PHP hesk_token_echo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了hesk_token_echo函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: hesk_printReplyForm


//.........这里部分代码省略.........
        if (empty($ticket['owner'])) {
            echo '<label><input type="checkbox" name="assign_self" value="1" checked="checked" /> <b>' . $hesklang['asss2'] . '</b></label><br />';
        } else {
            echo '<label><input type="checkbox" name="assign_self" value="1" /> ' . $hesklang['asss2'] . '</label><br />';
        }
    }
    ?>
	<label><input type="checkbox" name="set_priority" value="1" /> <?php 
    echo $hesklang['change_priority'];
    ?>
 </label>
	<select name="priority">
	<?php 
    echo implode('', $options);
    ?>
	</select><br />
	<label><input type="checkbox" name="signature" value="1" checked="checked" /> <?php 
    echo $hesklang['attach_sign'];
    ?>
</label>
	(<a href="profile.php"><?php 
    echo $hesklang['profile_settings'];
    ?>
</a>)<br />
    <label><input type="checkbox" name="no_notify" value="1" <?php 
    echo $_SESSION['notify_customer_reply'] ? '' : 'checked="checked"';
    ?>
 /> <?php 
    echo $hesklang['dsen'];
    ?>
</label>
	</td>
	</tr>
	</table>
	</center>
	</div>

	<p align="center">
    <input type="hidden" name="orig_id" value="<?php 
    echo $ticket['id'];
    ?>
" />
    <input type="hidden" name="token" value="<?php 
    hesk_token_echo();
    ?>
" />
    <input type="submit" value="    <?php 
    echo $hesklang['submit_reply'];
    ?>
    " class="orangebutton" onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" />
	&nbsp;
    <input type="submit" name="save_reply" value="<?php 
    echo $hesklang['sacl'];
    ?>
" class="orangebuttonsec" onmouseover="hesk_btn(this,'orangebuttonsecover');" onmouseout="hesk_btn(this,'orangebuttonsec');" />
	</p>

	<?php 
    // If ticket is not locked, show additional submit options
    if (!$ticket['locked']) {
        ?>
		<p>&nbsp;</p>

		<p align="center">
		<input type="submit" name="submit_as_customer" value="<?php 
        echo $hesklang['sasc'];
        ?>
" class="orangebuttonsec" onmouseover="hesk_btn(this,'orangebuttonsecover');" onmouseout="hesk_btn(this,'orangebuttonsec');" />
		<input type="submit" name="submit_as_resolved" value="<?php 
        echo $hesklang['submit_as'] . ' ' . $hesklang['closed'];
        ?>
" class="orangebuttonsec" onmouseover="hesk_btn(this,'orangebuttonsecover');" onmouseout="hesk_btn(this,'orangebuttonsec');" />
		<input type="submit" name="submit_as_in_progress" value="<?php 
        echo $hesklang['submit_as'] . ' ' . $hesklang['in_progress'];
        ?>
" class="orangebuttonsec" onmouseover="hesk_btn(this,'orangebuttonsecover');" onmouseout="hesk_btn(this,'orangebuttonsec');" />
		<input type="submit" name="submit_as_on_hold" value="<?php 
        echo $hesklang['submit_as'] . ' ' . $hesklang['on_hold'];
        ?>
" class="orangebuttonsec" onmouseover="hesk_btn(this,'orangebuttonsecover');" onmouseout="hesk_btn(this,'orangebuttonsec');" />
		</p>
		<?php 
    }
    ?>

	</form>

	</td>
	<td class="roundcornersright">&nbsp;</td>
</tr>
<tr>
	<td><img src="../img/roundcornerslb.jpg" width="7" height="7" alt="" /></td>
	<td class="roundcornersbottom"></td>
	<td width="7" height="7"><img src="../img/roundcornersrb.jpg" width="7" height="7" alt="" /></td>
</tr>
</table>

<!-- END REPLY FORM -->
<?php 
}
开发者ID:Eximagen,项目名称:helpdesk,代码行数:101,代码来源:admin_ticket.php


示例2: show_new_form

function show_new_form()
{
    global $hesk_settings, $hesklang, $admins;
    ?>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td width="7" height="7"><img src="../img/roundcornerslt.jpg" width="7" height="7" alt="" /></td>
			<td class="roundcornerstop"></td>
			<td><img src="../img/roundcornersrt.jpg" width="7" height="7" alt="" /></td>
		</tr>
		<tr>
		<td class="roundcornersleft">&nbsp;</td>
		<td>

		<form action="mail.php" method="post" name="form2">
		<h3 align="center"><?php 
    echo $hesklang['new_mail'];
    ?>
</h3>

		<div align="center">
		<table border="0">
		<tr>
		<td>

	    	<table border="0">
	        <tr>
		        <td><b><?php 
    echo $hesklang['m_to'];
    ?>
</b></td>
		        <td>
					<select name="to">
					<option value="" selected="selected"><?php 
    echo $hesklang['select'];
    ?>
</option>
					<?php 
    foreach ($admins as $k => $v) {
        if ($k != $_SESSION['id']) {
            if (isset($_SESSION['mail']) && $k == $_SESSION['mail']['to']) {
                echo '<option value="' . $k . '" selected="selected">' . $v . '</option>';
            } else {
                echo '<option value="' . $k . '">' . $v . '</option>';
            }
        }
    }
    ?>
					</select>
		        </td>
	        </tr>
	        <tr>
		        <td><b><?php 
    echo $hesklang['m_sub'];
    ?>
</b></td>
		        <td>
				<input type="text" name="subject" size="40" maxlength="50"
				<?php 
    if (isset($_SESSION['mail']['subject'])) {
        echo ' value="' . stripslashes($_SESSION['mail']['subject']) . '" ';
    }
    ?>
				/>
	            </td>
	        </tr>
	        </table>

		<p><b><?php 
    echo $hesklang['message'];
    ?>
:</b><br />
		<textarea name="message" rows="15" cols="70"><?php 
    if (isset($_SESSION['mail']['message'])) {
        echo stripslashes($_SESSION['mail']['message']);
    }
    ?>
</textarea>
		</p>

		</td>
		</tr>
		</table>

		<label><input type="checkbox" name="signature" value="1" checked="checked" /> <?php 
    echo $hesklang['attach_sign'];
    ?>
</label> (<a href="profile.php"><?php 
    echo $hesklang['profile_settings'];
    ?>
</a>)<br />&nbsp;<br />

		</div>

		<p align="center">
	    <input type="hidden" name="token" value="<?php 
    hesk_token_echo();
    ?>
" />
	    <input type="hidden" name="a" value="send" />
//.........这里部分代码省略.........
开发者ID:Eximagen,项目名称:helpdesk,代码行数:101,代码来源:mail.php


示例3: hesk_printCustomerReplyForm

function hesk_printCustomerReplyForm($reopen = 0)
{
    global $hesklang, $hesk_settings, $trackingID, $my_email;
    // Already printed?
    if (defined('REPLY_FORM')) {
        return '';
    }
    ?>

<br />

<div class="col-sm-8 col-sm-offset-2" id="addreply-title"><?php 
    echo $hesklang['add_reply'];
    ?>
</div>
<br/>
<div class="conatiner col-sm-8 col-sm-offset-2 start-helpDesk-ticket">
	<div class="row add-reply-ticket-ticketPhp">
			<br/>
			<div class="container">
				<form method="post" action="reply_ticket.php" enctype="multipart/form-data">
					<div class="form-inline">
						<label class="col-sm-2 control-label addreply-message"><?php 
    echo $hesklang['message'];
    ?>
: <span class="important">*</span></label>
						<textarea class="form-control" name="message" rows="12" cols="60" style="width: 443px; height: 246px;"><?php 
    if (isset($_SESSION['ticket_message'])) {
        echo stripslashes(hesk_input($_SESSION['ticket_message']));
    }
    ?>
</textarea>
					</div>					
	<br/>						
					<?php 
    /* attachments */
    if ($hesk_settings['attachments']['use']) {
        ?>

				<div class="form-group attachments-support-request">
					<div class="form-inline">
						<label class="col-sm-2 control-label addreply-attachments"><?php 
        echo $hesklang['attachments'];
        ?>
:</label>
						<div class="form-group">
							<?php 
        for ($i = 1; $i <= $hesk_settings['attachments']['max_number']; $i++) {
            echo '<input type="file" name="attachment[' . $i . ']" size="50" ' . ' style="margin-bottom: 10px;"/>';
        }
        ?>
							<a href="file_limits.php" target="_blank" onclick="Javascript:hesk_window('file_limits.php',250,500);return false;"><?php 
        echo $hesklang['ful'];
        ?>
</a>
						</div>
					</div>
				</div><!-- end attachments-support-request -->
				
	<br/><br/>
					<?php 
    }
    if (isset($_SESSION['ticket_message'])) {
        echo stripslashes(hesk_input($_SESSION['ticket_message']));
    }
    ?>


					<p align="center">
					<input type="hidden" name="token" value="<?php 
    hesk_token_echo();
    ?>
" />
					<input type="hidden" name="orig_track" value="<?php 
    echo $trackingID;
    ?>
" />
					<?php 
    if ($hesk_settings['email_view_ticket']) {
        echo '<input type="hidden" name="e" value="' . $my_email . '" />';
    }
    if ($reopen) {
        echo '<input type="hidden" name="reopen" value="1" />';
    }
    ?>
					<input type="submit" value="<?php 
    echo $hesklang['submit_reply'];
    ?>
" class="btn btn-default" id="submit-addReply" /></p>

				</form>

			</div>
	</div><!-- end add-reply-ticket-ticketPhp -->
</div>


	<?php 
    // Make sure the form is only printed once per page
    define('REPLY_FORM', true);
//.........这里部分代码省略.........
开发者ID:ermedita-xhafaj,项目名称:support,代码行数:101,代码来源:ticket.php


示例4: hesk_token_echo

        } else {
            $color = $i ? 'admin_white' : 'admin_gray';
        }
        $tmp = $i ? 'White' : 'Blue';
        $style = 'class="option' . $tmp . 'OFF" onmouseover="this.className=\'option' . $tmp . 'ON\'" onmouseout="this.className=\'option' . $tmp . 'OFF\'"';
        $i = $i ? 0 : 1;
        echo '
				<tr>
				<td class="' . $color . '" style="text-align:left">' . $ban['email'] . '</td>
				<td class="' . $color . '" style="text-align:left">' . (isset($admins[$ban['banned_by']]) ? $admins[$ban['banned_by']] : $hesklang['e_udel']) . '</td>
				<td class="' . $color . '" style="text-align:left">' . $ban['dt'] . '</td>
				';
        if ($can_unban) {
            echo '
				<td class="' . $color . '" style="text-align:center; white-space:nowrap;">
				<a href="banned_emails.php?a=unban&amp;id=' . $ban['id'] . '&amp;token=' . hesk_token_echo(0) . '" onclick="return confirm_delete();"><img src="../img/delete.png" width="16" height="16" alt="' . $hesklang['delban'] . '" title="' . $hesklang['delban'] . '" ' . $style . ' /></a>&nbsp;</td>
				';
        }
        echo '</tr>';
    }
    // End while
    ?>
		</table><!-- end table-bordered table-responsive -->
    <?php 
}
?>
</div><!-- end b-email -->
</div><!-- end tools-tab -->
<!-- TABS -->

<?php 
开发者ID:ermedita-xhafaj,项目名称:support,代码行数:31,代码来源:banned_emails.php


示例5: print_add_ticket


//.........这里部分代码省略.........
    if ($hesk_settings['submit_notice']) {
        ?>

	    <hr />

		<div align="center">
		<table border="0">
		<tr>
		<td>

	    <b><?php 
        echo $hesklang['before_submit'];
        ?>
</b>
	    <ul>
	    <li><?php 
        echo $hesklang['all_info_in'];
        ?>
.</li>
		<li><?php 
        echo $hesklang['all_error_free'];
        ?>
.</li>
	    </ul>


		<b><?php 
        echo $hesklang['we_have'];
        ?>
:</b>
	    <ul>
	    <li><?php 
        echo hesk_htmlspecialchars($_SERVER['REMOTE_ADDR']) . ' ' . $hesklang['recorded_ip'];
        ?>
</li>
		<li><?php 
        echo $hesklang['recorded_time'];
        ?>
</li>
		</ul>

		<p align="center"><input type="hidden" name="token" value="<?php 
        hesk_token_echo();
        ?>
" />
	    <input type="submit" value="<?php 
        echo $hesklang['sub_ticket'];
        ?>
" class="orangebutton"  onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" /></p>

	    </td>
		</tr>
		</table>
		</div>
	    <?php 
    } else {
        ?>
        &nbsp;<br />&nbsp;<br />
		<table border="0" width="100%">
		<tr>
		<td style="text-align:right" width="150">&nbsp;</td>
		<td width="80%"><input type="hidden" name="token" value="<?php 
        hesk_token_echo();
        ?>
" />
	    <input type="submit" value="<?php 
        echo $hesklang['sub_ticket'];
        ?>
" class="orangebutton"  onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" /><br />
	    &nbsp;<br />&nbsp;</td>
		</tr>
		</table>
	    <?php 
    }
    // End ELSE submit_notice
    ?>

	<!-- Do not delete or modify the code below, it is used to detect simple SPAM bots -->
	<input type="hidden" name="hx" value="3" /><input type="hidden" name="hy" value="" />
	<!-- >
	<input type="text" name="phone" value="3" />
	< -->

	</form>

    <!-- END FORM -->
	</td>
	<td class="roundcornersright">&nbsp;</td>
</tr>
<tr>
	<td><img src="img/roundcornerslb.jpg" width="7" height="7" alt="" /></td>
	<td class="roundcornersbottom"></td>
	<td width="7" height="7"><img src="img/roundcornersrb.jpg" width="7" height="7" alt="" /></td>
</tr>
</table>

<?php 
    hesk_cleanSessionVars('iserror');
    hesk_cleanSessionVars('isnotice');
}
开发者ID:abuhannan,项目名称:aduan,代码行数:101,代码来源:index.php


示例6: hesk_token_echo

	</table>

	</td>
	<td class="roundcornersright">&nbsp;</td>
	</tr>
	<tr>
	<td><img src="../img/roundcornerslb.jpg" width="7" height="7" alt="" /></td>
	<td class="roundcornersbottom"></td>
	<td width="7" height="7"><img src="../img/roundcornersrb.jpg" width="7" height="7" alt="" /></td>
	</tr>
</table>

	<!-- Submit -->
	<p align="center"><input type="hidden" name="action" value="update" />
    <input type="hidden" name="token" value="<?php 
hesk_token_echo();
?>
" /> 
	<input type="submit" value="<?php 
echo $hesklang['update_profile'];
?>
" class="orangebutton" onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" /></p>
    <p>&nbsp;</p>

    </form>

<?php 
require_once HESK_PATH . 'inc/footer.inc.php';
exit;
/*** START FUNCTIONS ***/
function update_profile()
开发者ID:riansopian,项目名称:hesk,代码行数:31,代码来源:profile.php


示例7: print_add_ticket


//.........这里部分代码省略.........
</b>
                                <ul>
                                    <li><?php 
        echo $hesklang['all_info_in'];
        ?>
.</li>
                                    <li><?php 
        echo $hesklang['all_error_free'];
        ?>
.</li>
                                </ul>


                                <b><?php 
        echo $hesklang['we_have'];
        ?>
:</b>
                                <ul>
                                    <li><?php 
        echo hesk_htmlspecialchars($_SERVER['REMOTE_ADDR']) . ' ' . $hesklang['recorded_ip'];
        ?>
</li>
                                    <li><?php 
        echo $hesklang['recorded_time'];
        ?>
</li>
                                </ul>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-9 col-md-offset-3">
                            <input type="hidden" id="latitude" name="latitude" value="E-0">
                            <input type="hidden" id="longitude" name="longitude" value="E-0">
                            <input type="hidden" name="token" value="<?php 
        hesk_token_echo();
        ?>
">
                            <input type="submit" value="<?php 
        echo $hesklang['sub_ticket'];
        ?>
" class="btn btn-default">
                        </div>
                    </div>

	                <?php 
    } else {
        ?>
                    <div class="row">
                        <div class="col-md-9 col-md-offset-3">
                            <input type="hidden" id="latitude" name="latitude" value="E-0">
                            <input type="hidden" id="longitude" name="longitude" value="E-0">
                            <input type="hidden" name="token" value="<?php 
        hesk_token_echo();
        ?>
">
                            <input class="btn btn-default" type="submit" value="<?php 
        echo $hesklang['sub_ticket'];
        ?>
">
                        </div>
                    </div>

	                <?php 
    }
    // End ELSE submit_notice
    ?>

                <!-- Do not delete or modify the code below, it is used to detect simple SPAM bots -->
                <input type="hidden" name="hx" value="3" /><input type="hidden" name="hy" value="" />
                <!-- >
                <input type="text" name="phone" value="3" />
                < -->

                </form>
            </div>
		</div>
        <?php 
    if ($columnWidth == 'col-md-10 col-md-offset-1') {
        ?>
            <div class="col-md-1">&nbsp;</div></div>
        <?php 
    }
    ?>
                 <!-- END FORM -->


<?php 
    // Request for the users location if enabled
    if ($modsForHesk_settings['request_location']) {
        echo '
    <script>
        requestUserLocation("' . $hesklang['your_current_location'] . '", "' . $hesklang['unable_to_determine_location'] . '");
    </script>
    ';
    }
    hesk_cleanSessionVars('iserror');
    hesk_cleanSessionVars('isnotice');
}
开发者ID:Orgoth,项目名称:Mods-for-HESK,代码行数:101,代码来源:index.php


示例8: hesk_token_echo

                            <td>

                                <label><input type="checkbox" name="cot" value="1" <?php 
if ($cot) {
    echo 'checked="checked"';
}
?>
 /> <?php 
echo $hesklang['cot'];
?>
</label><br />
                                <label><input type="checkbox" name="def" value="1" /> <?php 
echo $hesklang['def'];
?>
</label> (<a href="admin_main.php?reset=1&amp;token=<?php 
echo hesk_token_echo(0);
?>
"><?php 
echo $hesklang['redv'];
?>
</a>)

                            </td>

                    </table>

                    <div class="btn-group">
                        <input class="btn btn-default" type="submit" value="<?php 
echo $hesklang['show_tickets'];
?>
" />
开发者ID:Orgoth,项目名称:Mods-for-HESK,代码行数:31,代码来源:show_search_form.inc.php


示例9: hesk_printReplyForm


//.........这里部分代码省略.........
    		{
    			if (empty($ticket['owner']))
    			{
    				echo '<label class="container"><input type="checkbox" name="assign_self" value="1" checked="checked" /> <b>'.$hesklang['asss2'].'</b></label><br />';
    			}
    			else
    			{
    				echo '<label class="container"><input type="checkbox" name="assign_self" value="1" /> '.$hesklang['asss2'].'</label><br />';
    			}
    		}*/
    ?>
		<div class="form-inline">
		<label class="col-sm-2 control-label"><input type="checkbox" name="set_priority" value="1" /> <?php 
    echo $hesklang['change_priority'];
    ?>
 </label>
		<select class="form-control" name="priority">
			<?php 
    echo implode('', $options);
    ?>
		</select>
		</div>
		
		<br />
		
		<!--<div class="form-inline">
		<label class="col-sm-2"><input type="checkbox" name="signature" value="1" checked="checked" /> <?php 
    //echo $hesklang['attach_sign'];
    ?>
</label>
		<span>(<a href="profile.php"><?php 
    //echo $hesklang['profile_settings'];
    ?>
</a>)</span>
		</div>-->
		
		<label class="container"><input type="checkbox" name="no_notify" value="1" <?php 
    echo $_SESSION['notify_customer_reply'] ? '' : 'checked="checked"';
    ?>
 /> <?php 
    echo $hesklang['dsen'];
    ?>
</label>
	</div><!-- end first-table-->
<br/>
			<div>
				<input type="hidden" name="orig_id" value="<?php 
    echo $ticket['id'];
    ?>
" />
				<input type="hidden" name="token" value="<?php 
    hesk_token_echo();
    ?>
" />
				<input type="submit" value="<?php 
    echo $hesklang['submit_reply'];
    ?>
" class="btn btn-default submit_reply_btn" />
				&nbsp;
				<input type="submit" name="save_reply" value="<?php 
    echo $hesklang['sacl'];
    ?>
" class="btn btn-default sacl_btn" />
			</div>
			<br/>
			
			<?php 
    // If ticket is not locked, show additional submit options
    if (!$ticket['locked']) {
        ?>
				<div>
					<input type="submit" name="submit_as_customer" value="<?php 
        echo $hesklang['sasc'];
        ?>
" class="btn btn-default sasc_btn" />
					<input type="submit" name="submit_as_resolved" value="<?php 
        echo $hesklang['submit_as'] . ' ' . $hesklang['closed'];
        ?>
" class="btn btn-default submit_as_closed_btn" />
					<input type="submit" name="submit_as_in_progress" value="<?php 
        echo $hesklang['submit_as'] . ' ' . $hesklang['in_progress'];
        ?>
" class="btn btn-default submit_as_in_progress_btn" />
					<input type="submit" name="submit_as_on_hold" value="<?php 
        echo $hesklang['submit_as'] . ' ' . $hesklang['on_hold'];
        ?>
" class="btn btn-default submit_as_on_hold_btn" />
				</div>
				<br/>
				<?php 
    }
    ?>

		</form>

	</div><!-- end reply-form-admin-ticket -->

<!-- END REPLY FORM -->
<?php 
}
开发者ID:ermedita-xhafaj,项目名称:support,代码行数:101,代码来源:admin_ticket.php


示例10: hesk_printReplyForm


//.........这里部分代码省略.........
                            <input type="checkbox" name="set_priority" value="1" /> <?php 
    echo $hesklang['change_priority'];
    ?>
                        </label>
	                    <select class="form-control" name="priority">
	                        <?php 
    echo implode('', $options);
    ?>
	                    </select>
                    </div>
                    <br />
	                <label>
                        <input type="checkbox" name="signature" value="1" checked="checked" /> <?php 
    echo $hesklang['attach_sign'];
    ?>
                    </label>
	                (<a href="profile.php"><?php 
    echo $hesklang['profile_settings'];
    ?>
</a>)
                    <br />
                    <label>
                        <input type="checkbox" name="no_notify" value="1" <?php 
    echo $_SESSION['notify_customer_reply'] && !empty($ticket['email']) ? '' : 'checked="checked" ';
    ?>
 <?php 
    if (empty($ticket['email'])) {
        echo 'disabled';
    }
    ?>
> <?php 
    echo $hesklang['dsen'];
    ?>
                    </label><br/><br/>
                    <?php 
    if (empty($ticket['email'])) {
        echo '<input type="hidden" name="no_notify" value="1">';
    }
    ?>
                    <input type="hidden" name="orig_id" value="<?php 
    echo $ticket['id'];
    ?>
" />
                    <input type="hidden" name="token" value="<?php 
    hesk_token_echo();
    ?>
" />
                    <div class="btn-group">
                        <input class="btn btn-primary" type="submit" value="<?php 
    echo $hesklang['submit_reply'];
    ?>
">
                        <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <span class="caret"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <li><a>
                                <button class="dropdown-submit" type="submit" name="submit_as_customer">
                                    <?php 
    echo $hesklang['sasc'];
    ?>
                                </button>
                            </a></li>
                            <li class="divider"></li>
                            <?php 
    $allStatusesRs = hesk_dbQuery('SELECT `ID`, `Key`, `TextColor` FROM `' . hesk_dbEscape($hesk_settings['db_pfix']) . 'statuses`');
    $statuses = array();
    while ($row = hesk_dbFetchAssoc($allStatusesRs)) {
        array_push($statuses, $row);
    }
    foreach ($statuses as $status) {
        echo '<li><a>
                                        <button class="dropdown-submit" type="submit" name="submit_as_status" value="' . $status['ID'] . '"">
                                            ' . $hesklang['submit_reply'] . ' ' . $hesklang['and_change_status_to'] . ' <b>
                                            <span style="color:' . $status['TextColor'] . '">' . $hesklang[$status['Key']] . '</span></b>
                                        </button>
                                    </a></li>';
    }
    ?>
                        </ul>
                    </div>
                    <input class="btn btn-default" type="submit" name="save_reply" value="<?php 
    echo $hesklang['sacl'];
    ?>
">
                    <?php 
    if ($isManager) {
        ?>
                        <input type="hidden" name="isManager" value="1">
                    <?php 
    }
    ?>
                </div>
            </div>
        </form>

<!-- END REPLY FORM -->
<?php 
}
开发者ID:Orgoth,项目名称:Mods-for-HESK,代码行数:101,代码来源:admin_ticket.php


示例11: hesk_printCustomerReplyForm

function hesk_printCustomerReplyForm($reopen = 0)
{
    global $hesklang, $hesk_settings, $trackingID, $my_email;
    // Already printed?
    if (defined('REPLY_FORM')) {
        return '';
    }
    ?>

	<h3 class="text-left"><?php 
    echo $hesklang['add_reply'];
    ?>
</h3>
    <div class="footerWithBorder"></div>
    <div class="blankSpace"></div>

	<form role="form" class="form-horizontal" method="post" action="reply_ticket.php" enctype="multipart/form-data">
        <div class="form-group">
            <label for="message" class="col-sm-3 control-label"><?php 
    echo $hesklang['message'];
    ?>
: <span class="important">*</span></label>
            <div class="col-sm-9">
                <textarea name="message" class="form-control" rows="12" cols="60"><?php 
    if (isset($_SESSION['ticket_message'])) {
        echo stripslashes(hesk_input($_SESSION['ticket_message']));
    }
    ?>
</textarea>     
            </div>
        </div>
        <?php 
    /* attachments */
    if ($hesk_settings['attachments']['use']) {
        ?>
        <div class="form-group">
            <label for="attachments" class="col-sm-3 control-label"><?php 
        echo $hesklang['attachments'];
        ?>
:</label>
            <div class="col-sm-9 text-left">
                <?php 
        for ($i = 1; $i <= $hesk_settings['attachments']['max_number']; $i++) {
            echo '<input type="file" name="attachment[' . $i . ']" size="50" /><br />';
        }
        echo '<a href="file_limits.php" target="_blank" onclick="Javascript:hesk_window(\'file_limits.php\',250,500);return false;">' . $hesklang['ful'] . '</a>';
        ?>
     
            </div>
        </div>
        <?php 
    }
    ?>
        <input type="hidden" name="token" value="<?php 
    hesk_token_echo();
    ?>
" />
        <input type="hidden" name="orig_track" value="<?php 
    echo $trackingID;
    ?>
" />
        <?php 
    if ($hesk_settings['email_view_ticket']) {
        echo '<input type="hidden" name="e" value="' . $my_email . '" />';
    }
    if ($reopen) {
        echo '<input type="hidden" name="reopen" value="1" />';
    }
    ?>
	    <input type="submit" value="<?php 
    echo $hesklang['submit_reply'];
    ?>
" class="btn btn-default" />
    </form>

<?php 
    // Make sure the form is only printed once per page
    define('REPLY_FORM', true);
}
开发者ID:Orgoth,项目名称:Mods-for-HESK,代码行数:79,代码来源:ticket.php


示例12: hesk_token_echo

        if ($hesk_settings['autoassign']) {
            if ($myuser['autoassign']) {
                $autoassign_code = '<a href="manage_users.php?a=autoassign&amp;s=0&amp;id=' . $myuser['id'] . '&amp;token=' . hesk_token_echo(0) . '"><i style="color: orange; font-size: 16px" class="fa fa-bolt" data-toggle="tooltip" data-placement="top" title="' . $hesklang['aaon'] . '"></i></a>';
            } else {
                $autoassign_code = '<a href="manage_users.php?a=autoassign&amp;s=1&amp;id=' . $myuser['id'] . '&amp;token=' . hesk_token_echo(0) . '"><i style="color: gray; font-size: 16px" class="fa fa-bolt" data-toggle="tooltip" data-placement="top" title="' . $hesklang['aaoff'] . '"></i></a>';
            }
        } else {
            $autoassign_code = '';
        }
        $activeMarkup = '';
        if ($myuser['id'] != $_SESSION['id'] && $myuser['id'] != 1) {
            /* Is the user active? */
            if ($myuser['active']) {
                $activeMarkup = '<a href="manage_users.php?a=active&amp;s=0&amp;id=' . $myuser['id'] . '&amp;token=' . hesk_token_echo(0) . '"><i style="color: green; font-size: 16px" class="fa fa-user" data-toggle="tooltip" data-placement="top" title="' . $hesklang['disable_user'] . '"></i></a>';
            } else {
                $activeMarkup = '<a href="manage_users.php?a=active&amp;s=1&amp;id=' . $myuser['id'] . '&amp;token=' . hesk_token_echo(0) . '"><i style="color: gray; font-size: 16px" class="fa fa-user" data-toggle="tooltip" data-placement="top" title="' . $hesklang['enable_user'] . '"></i></a>';
            }
        }
        $templateName = $hesklang['custom'];
        if ($myuser['permission_template'] != -1) {
            $result = hesk_dbQuery("SELECT `name` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "permission_templates` WHERE `id` = " . intval($myuser['permission_template']));
            $row = hesk_dbFetchAssoc($result);
            $templateName = $row['name'];
        }
        echo <<<EOC
<tr>
<td>{$myuser['name']}</td>
<td><a href="mailto:{$myuser['email']}">{$myuser['email']}</a></td>
<td>{$myuser['user']}</td>
<td>{$templateName}</td>
开发者ID:Orgoth,项目名称:Mods-for-HESK,代码行数:30,代码来源:manage_users.php


示例13: edit_clients

function edit_clients()
{
    global $hesk_settings, $hesklang, $default_userdata;
    $id = intval(hesk_GET('id')) or hesk_error("{$hesklang['int_error']}: {$hesklang['no_valid_id']}");
    /* To edit self fore using "Profile" page */
    if ($id == $_SESSION['id']) {
        hesk_process_messages($hesklang['eyou'], 'profile.php', 'NOTICE');
    }
    $_SESSION['edit_userdata'] = TRUE;
    if (!isset($_SESSION['save_userdata'])) {
        $result = hesk_dbQuery('SELECT * from `' . hesk_dbEscape($hesk_settings['db_pfix']) . 'clients` WHERE `id`=' . $id);
        $row = mysqli_fetch_array($result);
        $_SESSION['userdata']['name'] = $row['name'];
        $_SESSION['userdata']['email'] = $row['email'];
        $_SESSION['userdata']['user'] = $row['user'];
        $_SESSION['userdata']['address'] = $row['address'];
        $_SESSION['userdata']['phonenumber'] = $row['phonenumber'];
        $_SESSION['userdata']['poz_detyres'] = $row['poz_detyres'];
        $_SESSION['userdata']['company_id'] = $row['company_id'];
        $_SESSION['userdata']['active'] = $row['active'];
        /* Store original username for display until changes are saved successfully */
        $_SESSION['original_user'] = $_SESSION['userdata']['user'];
    }
    /* Print header */
    require_once HESK_PATH . 'inc/header.inc.php';
    /* Print main manage users page */
    require_once HESK_PATH . 'inc/show_admin_nav.inc.php';
    ?>

	<div class="container manage-users-title"><a href="manage_users.php" class="smaller"><?php 
    echo '<b>' . $hesklang['manage_users'] . '</b>';
    ?>
</a> &gt; <?php 
    echo $hesklang['editing_user'] . ' ' . $_SESSION['original_user'];
    ?>
</div>

	<?php 
    /* This will handle error, success and notice messages */
    hesk_handle_messages();
    ?>

	<div class="container editing-users-title"><?php 
    echo '<b>' . $hesklang['editing_user'] . ' ' . $_SESSION['original_user'] . '</b>';
    ?>
</div>

	<div class="container"><?php 
    echo $hesklang['req_marked_with'];
    ?>
 <font class="important">*</font></div>

	<script language="Javascript" type="text/javascript"><!--
	var tabberOptions = {
		'cookie':"tabbereu",
		'onLoad': function(argsObj)
		{
			var t = argsObj.tabber;
			var i;
			if (t.id) {
			t.cookie = t.id + t.cookie;
		}

		i = parseInt(getCookie(t.cookie));
		if (isNaN(i)) { return; }
			t.tabShow(i);
		},

		'onClick':function(argsObj)
		{
			var c = argsObj.tabber.cookie;
			var i = argsObj.index;
			setCookie(c, i);
		}
	};
	//-->
	</script>

	<script language="Javascript" type="text/javascript" src="<?php 
    echo HESK_PATH;
    ?>
inc/tabs/tabber-minimized.js"></script>

	<form name="form1" method="post" action="manage_users.php?a=update_client">
	<?php 
    hesk_profile_tab('userdata', false);
    ?>

	<!-- Submit -->
	<div class="container"><input type="hidden" name="a" value="save" />
		<input type="hidden" name="userid" value="<?php 
    echo $id;
    ?>
" />
		<input type="hidden" name="token" value="<?php 
    hesk_token_echo();
    ?>
" />
		<input type="submit" value="<?php 
    echo $hesklang['save_changes'];
//.........这里部分代码省略.........
开发者ID:ermedita-xhafaj,项目名称:support,代码行数:101,代码来源:manage_users.php


示例14: edit_user


//.........这里部分代码省略.........
			<td valign="top" width="100" style="text-align:right;white-space:nowrap;"><?php 
    echo $hesklang['allow_feat'];
    ?>
: <font class="important">*</font></td>
			<td valign="top">
	        <?php 
    foreach ($hesk_settings['features'] as $k) {
        echo '<label><input type="checkbox" name="features[]" value="' . $k . '" ';
        if (in_array($k, $_SESSION['userdata']['features'])) {
            echo ' checked="checked" ';
        }
        echo ' />' . $hesklang[$k] . '</label><br /> ';
    }
    ?>
	        &nbsp;
			</td>
			</tr>
	        </table>
	    </div>

	</td>
	</tr>
	<?php 
    if ($hesk_settings['autoassign']) {
        ?>
		<tr>
		<td width="200" style="text-align:right"><?php 
        echo $hesklang['opt'];
        ?>
:</td>
		<td><label><input type="checkbox" name="autoassign" value="Y" <?php 
        if (isset($_SESSION['userdata']['autoassign']) && $_SESSION['userdata']['autoassign'] == 1) {
            echo 'checked="checked"';
        }
        ?>
 /> <?php 
        echo $hesklang['user_aa'];
        ?>
</label></td>
		</tr>
		<?php 
    }
    ?>
	<tr>
	<td valign="top" width="200" style="text-align:right"><?php 
    echo $hesklang['signature_max'];
    ?>
:</td>
	<td><textarea name="signature" rows="6" cols="40"><?php 
    echo $_SESSION['userdata']['signature'];
    ?>
</textarea><br />
	<?php 
    echo $hesklang['sign_extra'];
    ?>
</td>
	</tr>
	</table>

	<!-- Submit -->
	<p align="center"><input type="hidden" name="a" value="save" />
	<input type="hidden" name="userid" value="<?php 
    echo $id;
    ?>
" />
    <input type="hidden" name="token" value="<?php 
    hesk_token_echo();
    ?>
" />
	<input type="submit" value="<?php 
    echo $hesklang['save_changes'];
    ?>
" class="orangebutton" onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" />
    |
    <a href="manage_users.php"><?php 
    echo $hesklang['dich'];
    ?>
</a></p>

	</form>

	<script language="Javascript" type="text/javascript"><!--
	hesk_checkPassword(document.form1.newpass.value);
	//-->
	</script>

        </td>
		<td class="roundcornersright">&nbsp;</td>
		</tr>
		<tr>
		<td><img src="../img/roundcornerslb.jpg" width="7" height="7" alt="" /></td>
		<td class="roundcornersbottom"></td>
		<td width="7" height="7"><img src="../img/roundcornersrb.jpg" width="7" height="7" alt="" /></td>
		</tr>
	</table>

	<?php 
    require_once HESK_PATH . 'inc/footer.inc.php';
    exit;
}
开发者ID:riansopian,项目名称:hesk,代码行数:101,代码来源:manage_users.php


示例15: show_new_form


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP hesk_validateEmail函数代码示例发布时间:2022-05-15
下一篇:
PHP hesk_token_check函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap