当前位置: 首页>>代码示例>>PHP>>正文


PHP hesk_handle_messages函数代码示例

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


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

示例1: edit_user

function edit_user()
{
    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'])) {
        $res = hesk_dbQuery("SELECT `user`,`pass`,`isadmin`,`name`,`email`,`signature`,`categories`,`autoassign`,`heskprivileges` AS `features` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` WHERE `id`='" . intval($id) . "' LIMIT 1");
        $_SESSION['userdata'] = hesk_dbFetchAssoc($res);
        /* Store original username for display until changes are saved successfully */
        $_SESSION['original_user'] = $_SESSION['userdata']['user'];
        /* A few variables need special attention... */
        if ($_SESSION['userdata']['isadmin']) {
            $_SESSION['userdata']['features'] = $default_userdata['features'];
            $_SESSION['userdata']['categories'] = $default_userdata['categories'];
        } else {
            $_SESSION['userdata']['features'] = explode(',', $_SESSION['userdata']['features']);
            $_SESSION['userdata']['categories'] = explode(',', $_SESSION['userdata']['categories']);
        }
        $_SESSION['userdata']['cleanpass'] = '';
    }
    /* Make sure we have permission to edit this user */
    if (!compare_user_permissions($id, $_SESSION['userdata']['isadmin'], $_SESSION['userdata']['categories'], $_SESSION['userdata']['features'])) {
        hesk_process_messages($hesklang['npea'], 'manage_users.php');
    }
    /* 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';
    ?>

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

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

	<p class="smaller">&nbsp;<a href="manage_users.php" class="smaller"><?php 
    echo $hesklang['manage_users'];
    ?>
</a> &gt; <?php 
    echo $hesklang['editing_user'] . ' ' . $_SESSION['original_user'];
    ?>
</p>

	<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>

	<h3 align="center"><?php 
    echo $hesklang['editing_user'] . ' ' . $_SESSION['original_user'];
    ?>
</h3>

	<p align="center"><?php 
    echo $hesklang['req_marked_with'];
    ?>
 <font class="important">*</font></p>

	<form name="form1" method="post" action="manage_users.php">

	<!-- Contact info -->
	<table border="0" width="100%">
	<tr>
	<td width="200" style="text-align:right"><?php 
    echo $hesklang['real_name'];
    ?>
: <font class="important">*</font></td>
	<td align="left"><input type="text" name="name" size="40" maxlength="50" value="<?php 
    echo $_SESSION['userdata']['name'];
    ?>
" /></td>
	</tr>
	<tr>
	<td width="200" style="text-align:right"><?php 
    echo $hesklang['email'];
    ?>
: <font class="important">*</font></td>
	<td align="left"><input type="text" name="email" size="40" maxlength="255" value="<?php 
    echo $_SESSION['userdata']['email'];
    ?>
" /></td>
	</tr>
	<tr>
	<td width="200" style="text-align:right"><?php 
    echo $hesklang['username'];
    ?>
//.........这里部分代码省略.........
开发者ID:riansopian,项目名称:hesk,代码行数:101,代码来源:manage_users.php

示例2: show_subnav

function show_subnav($hide = '', $catid = 1)
{
    global $hesk_settings, $hesklang;
    // If a category is selected, use it as default for articles and parents
    if (isset($_SESSION['KB_CATEGORY'])) {
        $catid = intval($_SESSION['KB_CATEGORY']);
    }
    $link['view'] = '<a href="knowledgebase_private.php"><img src="../img/view.png" width="16" height="16" alt="' . $hesklang['gopr'] . '" title="' . $hesklang['gopr'] . '" border="0" style="border:none;vertical-align:text-bottom" /></a> <a href="knowledgebase_private.php">' . $hesklang['gopr'] . '</a> | ';
    $link['newa'] = '<a href="manage_knowledgebase.php?a=add_article&amp;catid=' . $catid . '"><img src="../img/add_article.png" width="16" height="16" alt="' . $hesklang['kb_i_art'] . '" title="' . $hesklang['kb_i_art'] . '" border="0" style="border:none;vertical-align:text-bottom" /></a> <a href="manage_knowledgebase.php?a=add_article&amp;catid=' . $catid . '">' . $hesklang['kb_i_art'] . '</a> | ';
    $link['newc'] = '<a href="manage_knowledgebase.php?a=add_category&amp;parent=' . $catid . '"><img src="../img/add_category.png" width="16" height="16" alt="' . $hesklang['kb_i_cat'] . '" title="' . $hesklang['kb_i_cat'] . '" border="0" style="border:none;vertical-align:text-bottom" /></a> <a href="manage_knowledgebase.php?a=add_category&amp;parent=' . $catid . '">' . $hesklang['kb_i_cat'] . '</a> | ';
    if ($hide && isset($link[$hide])) {
        $link[$hide] = preg_replace('#<a([^<]*)>#', '', $link[$hide]);
        $link[$hide] = str_replace('</a>', '', $link[$hide]);
    }
    ?>

	<form method="get" action="manage_knowledgebase.php">
		<div class="container form-inline view-newa-newc-form">
		<?php 
    echo $link['view'];
    echo $link['newa'];
    echo $link['newc'];
    ?>
		<img src="../img/edit.png" width="16" height="16" alt="<?php 
    echo $hesklang['edit'];
    ?>
" title="<?php 
    echo $hesklang['edit'];
    ?>
" border="0" style="border:none;vertical-align:text-bottom" /></a> <input type="hidden" name="a" value="edit_article" /><?php 
    echo $hesklang['aid'];
    ?>
: <input class="form-control" type="text" name="id" size="3" /> <input type="submit" value="<?php 
    echo $hesklang['edit'];
    ?>
" class="btn btn-default" />
		</div>
	</form>

	<?php 
    /* This will handle error, success and notice messages */
    hesk_handle_messages();
    return $catid;
}
开发者ID:ermedita-xhafaj,项目名称:support,代码行数:44,代码来源:manage_knowledgebase.php

示例3: print_form

function print_form()
{
    global $hesk_settings, $hesklang;
    global $trackingID;
    /* Print header */
    require_once HESK_PATH . 'inc/header.inc.php';
    /* Print admin navigation */
    require_once HESK_PATH . 'inc/show_admin_nav.inc.php';
    ?>

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

    &nbsp;<br />

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

	<div align="center">
	<table border="0" cellspacing="0" cellpadding="0" width="50%">
	<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="admin_ticket.php" method="get">

	        <table width="100%" border="0" cellspacing="0" cellpadding="0">
	        <tr>
	                <td width="1"><img src="../img/existingticket.png" alt="" width="60" height="60" /></td>
	                <td>
	                <p><b><?php 
    echo $hesklang['view_existing'];
    ?>
</a></b></p>
	                </td>
	        </tr>
	        <tr>
	                <td width="1">&nbsp;</td>
	                <td>&nbsp;</td>
	        </tr>
	        <tr>
	                <td width="1">&nbsp;</td>
	                <td>
	                <?php 
    echo $hesklang['ticket_trackID'];
    ?>
: <br /><input type="text" name="track" maxlength="20" size="35" value="<?php 
    echo $trackingID;
    ?>
" /><br />&nbsp;
	                </td>
	        </tr>
	        <tr>
	                <td width="1">&nbsp;</td>
	                <td><input type="submit" value="<?php 
    echo $hesklang['view_ticket'];
    ?>
" class="orangebutton" onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" /><input type="hidden" name="Refresh" value="<?php 
    echo rand(10000, 99999);
    ?>
"></td>
	        </tr>
	        </table>

	        </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>
	</div>

	<p>&nbsp;</p>
	<?php 
    require_once HESK_PATH . 'inc/footer.inc.php';
    exit;
}
开发者ID:Eximagen,项目名称:helpdesk,代码行数:91,代码来源:admin_ticket.php

示例4: print_login

function print_login()
{
    global $hesk_settings, $hesklang;
    $hesk_settings['tmp_title'] = $hesk_settings['hesk_title'] . ' - ' . $hesklang['admin_login'];
    require_once HESK_PATH . 'inc/header.inc.php';
    if (hesk_isREQUEST('notice')) {
        hesk_process_messages($hesklang['session_expired'], 'NOREDIRECT');
    }
    if (!isset($_SESSION['a_iserror'])) {
        $_SESSION['a_iserror'] = array();
    }
    ?>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td width="3"><img src="../img/headerleftsm.jpg" width="3" height="25" alt="" /></td>
	<td class="headersm"><?php 
    echo $hesklang['login'];
    ?>
</td>
	<td width="3"><img src="../img/headerrightsm.jpg" width="3" height="25" alt="" /></td>
	</tr>
	</table>

	<table width="100%" border="0" cellspacing="0" cellpadding="3">
	<tr>
	<td><span class="smaller"><a href="<?php 
    echo $hesk_settings['site_url'];
    ?>
" class="smaller"><?php 
    echo $hesk_settings['site_title'];
    ?>
</a> &gt;
	<?php 
    echo $hesklang['admin_login'];
    ?>
</span></td>
	</tr>
	</table>

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

	<br />

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

    <br />

    <div align="center">
	<table border="0" cellspacing="0" cellpadding="0" width="<?php 
    echo $hesk_settings['secimg_use'] == 2 ? '60' : '50';
    ?>
% ">
	<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="index.php" method="post" name="form1">

        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
                <td width="60" style="text-align:center"><img src="../img/login.png" alt="" width="24" height="24" /></td>
                <td>
                <p><b><?php 
    echo $hesklang['admin_login'];
    ?>
</a></b></p>
                </td>
        </tr>
        <tr>
                <td width="60">&nbsp;</td>
                <td>&nbsp;</td>
        </tr>
        <tr>
                <td width="60">&nbsp;</td>
                <td><?php 
    echo $hesklang['username'];
    ?>
:<br />
				<?php 
    $cls = in_array('user', $_SESSION['a_iserror']) ? ' class="isError" ' : '';
    if (defined('HESK_USER')) {
        $savedUser = HESK_USER;
    } else {
        $savedUser = hesk_htmlspecialchars(hesk_COOKIE('hesk_username'));
    }
    $is_1 = '';
    $is_2 = '';
    $is_3 = '';
    $remember_user = hesk_POST('remember_user');
//.........这里部分代码省略.........
开发者ID:riansopian,项目名称:hesk,代码行数:101,代码来源:index.php

示例5: print_form

function print_form()
{
    global $hesk_settings, $hesklang;
    global $hesk_error_buffer, $my_email, $trackingID, $do_remember, $display;
    /* Print header */
    $hesk_settings['tmp_title'] = $hesk_settings['hesk_title'] . ' - ' . $hesklang['view_ticket'];
    require_once HESK_PATH . 'inc/header.inc.php';
    ?>

<nav class="row navbar navbar-default" id="showTopBar-indexPhp">
	<div class="menu-wrapper">
		<div class="container showTopBar"><?php 
    hesk_showTopBar($hesk_settings['hesk_title']);
    ?>
</div>
	</div>
</nav>

	<nav class="row navbar userMenu">
      <div class="container">
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
			<li id="userMenu-home"><a href="index.php"><?php 
    echo $hesklang['main_page'];
    ?>
</a></li>
			<li id="userMenu-submitTicket"><a href="index.php?a=add"><?php 
    echo $hesklang['submit_tick'];
    ?>
</a></li>
			<li id="client-username"><a href="client_profile.php"><?php 
    echo $hesklang['hello'];
    if (isset($_SESSION['id']['user']) && $_SESSION['id']['user']) {
        echo $_SESSION['id']['user'];
    }
    ?>
</a></li>
			<li id="userMenu-logout"><a href="logout.php"><?php 
    echo $hesklang['logout'];
    ?>
</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>	
<?php 
    /*hesk_showTopBar($hesklang['view_ticket']); */
    ?>
	 <!-- show view-ticket-title -->

<div class="container siteUrl-title-view-ticket-ticketPhp">
	<div class="form-inline">
		<span class="smaller"><a href="<?php 
    echo $hesk_settings['site_url'];
    ?>
" class="smaller"><?php 
    echo $hesk_settings['site_title'];
    ?>
</a> &gt;
		<a href="<?php 
    echo $hesk_settings['hesk_url'];
    ?>
" class="smaller"><?php 
    echo $hesk_settings['hesk_title'];
    ?>
</a>
		&gt; <?php 
    echo $hesklang['view_ticket'];
    ?>
</span>
	</div>
</div>


<br/><br/><br/>

<?php 
    /* This will handle error, success and notice messages */
    hesk_handle_messages();
    ?>
<div class="form-group existing-ticket" align="center">
	<div class="form-inline">
		<img src="img/existingticket.jpg" alt="existingticket"/>
		<label class="control-label"><?php 
    echo $hesklang['view_existing'];
    ?>
</a></label>
	</div>
	<br/>
	<div class="view-existing-ticket-ticketPhp">
		<form action="ticket.php" method="get" name="form2">
			<div class="form-group">
				&nbsp;
				&nbsp;
				<div class="form-inline">
					&nbsp;	
					<label class="control-label" for="ticket-tracking-search"><?php 
    echo $hesklang['ticket_trackID'];
    ?>
:</label><br/> <br /><input class="form-control" id="ticket-tracking-search" type="text" name="track" maxlength="20" size="35" value="<?php 
//.........这里部分代码省略.........
开发者ID:ermedita-xhafaj,项目名称:support,代码行数:101,代码来源:ticket.php

示例6: print_add_ticket


//.........这里部分代码省略.........
<div class="container form-inline">
<span><a href="<?php 
    echo $hesk_settings['site_url'];
    ?>
" class="smaller" style="text-decoration: none;"><?php 
    echo $hesk_settings['site_title'];
    ?>
</a> &gt;
<a href="<?php 
    echo $hesk_settings['hesk_url'];
    ?>
" class="smaller"><?php 
    echo 'Help Desk';
    ?>
</a>
&gt; <?php 
    echo $hesklang['submit_ticket'];
    ?>
</span>
</div>
</div><!-- end siteUrl-title-indexPhp -->
<br/>
<br/>

<!--</td>
</tr>-->

<!--start in this page end in line 947
<tr>
<td>-->

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

<div class="container" id="view-submitTicket"> 
<img src="img/existingticket.jpg" alt="existingticket"/><span><?php 
    echo $hesklang['submit_ticket'];
    ?>
</span></div>

<br/>
<div class="container form-submit-support-request">
	<br/>
	<div><?php 
    echo $hesklang['use_form_below'];
    ?>
 <font class="important"> *</font></div><br/>
	<!-- START FORM -->
			<form class="form-horizontal" method="post" action="submit_ticket.php?submit=1" name="form1" enctype="multipart/form-data"  autocomplete="off">

			<!-- Contact info -->
				<div class="form-group" style="margin-bottom: 5px;">
					<label class="col-sm-2" for="name-contact-info-support-request"><?php 
    echo $hesklang['name'];
    ?>
: <font class="important">*</font></label>
					<div class="col-sm-4"><input type="text" class="form-control contact-support-request" id="name-contact-info-support-request" name="name"  value="<?php 
    if (isset($_SESSION['id']['user'])) {
        echo $_SESSION['id']['user'];
    }
    ?>
" <?php 
    if (in_array('name', $_SESSION['iserror'])) {
        echo ' class="isError" ';
开发者ID:ermedita-xhafaj,项目名称:support,代码行数:67,代码来源:index.php

示例7: print_add_ticket


//.........这里部分代码省略.........
    $showRs = hesk_dbQuery("SELECT `show` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "quick_help_sections` WHERE `id` = 1");
    $show = hesk_dbFetchAssoc($showRs);
    if (!$show['show']) {
        $columnWidth = 'col-md-10 col-md-offset-1';
    }
    ?>
    <div class="row">
        <?php 
    if ($columnWidth == 'col-md-8') {
        ?>
        <div align="left" class="col-md-4">
            <div class="panel panel-default">
                <div class="panel-heading"><?php 
        echo $hesklang['quick_help'];
        ?>
</div>
                <div class="panel-body">
                    <p><?php 
        echo $hesklang['quick_help_submit_ticket'];
        ?>
</p>
                </div>
            </div>
	    </div>
        <?php 
    }
    ?>
        <div class="<?php 
    echo $columnWidth;
    ?>
">
            <?php 
    // This will handle error, success and notice messages
    hesk_handle_messages();
    ?>
            <!-- START FORM -->
            <div class="form">
	            <h2><?php 
    hesk_showTopBar($hesklang['submit_ticket']);
    ?>
</h2>
	            <small><?php 
    echo $hesklang['use_form_below'];
    ?>
</small>
                <div class="blankSpace"></div>
	
            <div align="left" class="h3"><?php 
    echo $hesklang['add_ticket_general_information'];
    ?>
</div>
            <div class="footerWithBorder"></div>
            <div class="blankSpace"></div>
	            <form class="form-horizontal" role="form" method="post" action="submit_ticket.php?submit=1" name="form1" enctype="multipart/form-data">
		            <!-- Contact info -->
		            <div class="form-group">
			            <label for="name" class="col-sm-3 control-label"><?php 
    echo $hesklang['name'];
    ?>
: <font class="important">*</font></label>
			            <div class="col-sm-9">
                            <input type="text" class="form-control" id="name" name="name" size="40" maxlength="30" value="<?php 
    if (isset($_SESSION['c_name'])) {
        echo stripslashes(hesk_input($_SESSION['c_name']));
    }
    ?>
开发者ID:Orgoth,项目名称:Mods-for-HESK,代码行数:67,代码来源:index.php

示例8: hesk_handle_messages

    $_SESSION['new']['username'] = '';
}
/* Print header */
require_once HESK_PATH . 'inc/header.inc.php';
/* Print admin navigation */
require_once HESK_PATH . 'inc/show_admin_nav.inc.php';
?>

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

<?php 
/* This will handle error, success and notice messages */
hesk_handle_messages();
if (defined('WARN_PASSWORD')) {
    hesk_show_notice($hesklang['chdp2'], '<span class="important">' . $hesklang['security'] . '</span>');
}
?>

	<h3 align="center"><?php 
echo $hesklang['profile_for'] . ' <b>' . $_SESSION['new']['user'];
?>
</b></h3>

	<p align="center"><?php 
echo $hesklang['req_marked_with'];
?>
 <span class="important">*</span></p>
开发者ID:riansopian,项目名称:hesk,代码行数:30,代码来源:profile.php

示例9: print_form

function print_form()
{
    global $hesk_settings, $hesklang;
    global $trackingID;
    /* Print header */
    require_once HESK_PATH . 'inc/header.inc.php';
    /* Print admin navigation */
    require_once HESK_PATH . 'inc/show_admin_nav.inc.php';
    ?>

<!--</td>
</tr>-->

<!-- start in this page end somewhere...
<tr> 
<td>-->



    &nbsp;<br />

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

	<div align="center">
		<div class="table-view-existing-ticket" style="border: 1px solid black; border-radius: 5px;">
				&nbsp;
				<div class="view-existing-ticket">

					<form action="admin_ticket.php" method="get">

						<div id="admin-ticket-view">
							<div id="img-existingticket">
									<img src="../img/existingticket.png" alt="" width="60" height="60" />
									
									<p><b><?php 
    echo $hesklang['view_existing'];
    ?>
</a></b></p>
									
							</div><!-- end img-existingticket -->
							
							&nbsp;
							&nbsp;
									
							<div id="ticket-trackid">
								&nbsp;
									<?php 
    echo $hesklang['ticket_trackID'];
    ?>
: <br /><input type="text" name="track" maxlength="20" size="35" value="<?php 
    echo $trackingID;
    ?>
" /><br />&nbsp;
							</div><!-- end ticket-trackid -->
							<div id="button-view-ticket">
								&nbsp;
								<button type="submit" class="btn btn-default"><?php 
    echo $hesklang['view_ticket'];
    ?>
</button><input type="hidden" name="Refresh" value="<?php 
    echo rand(10000, 99999);
    ?>
">
							</div><!-- end button-view-ticket -->
						</div><!-- end admin-ticket-view -->

					</form>

				</div>
				&nbsp;
		</div><!-- end table-view-existing-ticket -->
	</div>

	<p>&nbsp;</p>
	<?php 
    require_once HESK_PATH . 'inc/footer.inc.php';
    exit;
}
开发者ID:ermedita-xhafaj,项目名称:support,代码行数:81,代码来源:admin_ticket.php

示例10: print_form

function print_form()
{
    global $hesk_settings, $hesklang;
    global $trackingID;
    /* Print header */
    require_once HESK_PATH . 'inc/headerAdmin.inc.php';
    /* Print admin navigation */
    require_once HESK_PATH . 'inc/show_admin_nav.inc.php';
    /* This will handle error, success and notice messages */
    hesk_handle_messages();
    ?>
    <div class="row">
        <div class="col-sm-10 col-sm-offset-1">
            <h3 align="left"><?php 
    echo $hesklang['view_existing'];
    ?>
</a></h3>
            <form action="admin_ticket.php" method="get" class="form-horizontal">
                <div class="form-group">
                    <label for="track" class="control-label col-sm-3"><?php 
    echo $hesklang['ticket_trackID'];
    ?>
</label>
                    <div class="col-sm-9">
                        <input type="text" name="track" maxlength="20" size="35" value="<?php 
    echo $trackingID;
    ?>
"
                               placeholder="<?php 
    echo $hesklang['ticket_trackID'];
    ?>
" class="form-control"><br>
                        <input type="submit" value="<?php 
    echo $hesklang['view_ticket'];
    ?>
" class="btn btn-default">
                        <input type="hidden" name="Refresh" value="<?php 
    echo rand(10000, 99999);
    ?>
">
                    </div>
                </div>
            </form>
        </div>
    </div>
	<?php 
    require_once HESK_PATH . 'inc/footer.inc.php';
    exit;
}
开发者ID:Orgoth,项目名称:Mods-for-HESK,代码行数:49,代码来源:admin_ticket.php

示例11: print_form

function print_form()
{
    global $hesk_settings, $hesklang;
    global $hesk_error_buffer, $my_email, $trackingID, $do_remember, $display;
    /* Print header */
    $hesk_settings['tmp_title'] = $hesk_settings['hesk_title'] . ' - ' . $hesklang['view_ticket'];
    require_once HESK_PATH . 'inc/header.inc.php';
    ?>
<ol class="breadcrumb">
  <li><a href="<?php 
    echo $hesk_settings['site_url'];
    ?>
"><?php 
    echo $hesk_settings['site_title'];
    ?>
</a></li>
  <li><a href="<?php 
    echo $hesk_settings['hesk_url'];
    ?>
"><?php 
    echo $hesk_settings['hesk_title'];
    ?>
</a></li>
  <li class="active"><?php 
    echo $hesklang['view_ticket_nav'];
    ?>
</li>
</ol>

<?php 
    hesk_dbConnect();
    $columnWidth = 'col-md-8';
    $showRs = hesk_dbQuery("SELECT `show` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "quick_help_sections` WHERE `id` = 2");
    $show = hesk_dbFetchAssoc($showRs);
    if (!$show['show']) {
        $columnWidth = 'col-md-10 col-md-offset-1';
    }
    ?>
<div class="row">
    <?php 
    if ($columnWidth == 'col-md-8') {
        ?>
    <div align="left" class="col-md-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <?php 
        echo $hesklang['quick_help'];
        ?>
            </div>
            <div class="panel-body">
                <p><?php 
        echo $hesklang['quick_help_view_ticket'];
        ?>
</p>
            </div>
        </div>
    </div>
    <?php 
    }
    ?>
    <div class="<?php 
    echo $columnWidth;
    ?>
">
        <?php 
    /* This will handle error, success and notice messages */
    hesk_handle_messages();
    ?>
        <h3 align="left"><?php 
    echo $hesklang['view_existing'];
    ?>
</h3>
        <div class="footerWithBorder"></div>
        <div class="blankSpace"></div>
        <form action="ticket.php" class="form-horizontal" role="form" method="get" name="form2">
            <div class="form-group">
                <label for="track" class="col-sm-3 control-label"><?php 
    echo $hesklang['ticket_trackID'];
    ?>
</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="track" id="track" maxlength="20" size="35" value="<?php 
    echo $trackingID;
    ?>
" placeholder="<?php 
    echo htmlspecialchars($hesklang['ticket_trackID']);
    ?>
">
                </div>
            </div>
            <?php 
    $tmp = '';
    if ($hesk_settings['email_view_ticket']) {
        $tmp = 'document.form1.email.value=document.form2.e.value;';
        ?>
            <div class="form-group">
                <label for="e" class="col-sm-3 control-label"><?php 
        echo $hesklang['email'];
        ?>
</label>
//.........这里部分代码省略.........
开发者ID:Orgoth,项目名称:Mods-for-HESK,代码行数:101,代码来源:ticket.php

示例12: edit_user

function edit_user()
{
    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');
    }
    if ($id == 1) {
        hesk_process_messages($hesklang['cant_edit_admin'], './manage_users.php');
    }
    $_SESSION['edit_userdata'] = TRUE;
    if (!isset($_SESSION['save_userdata'])) {
        $res = hesk_dbQuery("SELECT *,`heskprivileges` AS `features`, `active`\n                            FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` WHERE `id`='" . intval($id) . "' LIMIT 1");
        $_SESSION['userdata'] = hesk_dbFetchAssoc($res);
        /* Store original username for display until changes are saved successfully */
        $_SESSION['original_user'] = $_SESSION['userdata']['user'];
        /* A few variables need special attention... */
        if ($_SESSION['userdata']['isadmin']) {
            $_SESSION['userdata']['features'] = $default_userdata['features'];
            $_SESSION['userdata']['categories'] = $default_userdata['categories'];
        } else {
            $_SESSION['userdata']['features'] = explode(',', $_SESSION['userdata']['features']);
            $_SESSION['userdata']['categories'] = explode(',', $_SESSION['userdata']['categories']);
        }
        $_SESSION['userdata']['cleanpass'] = '';
    }
    /* Make sure we have permission to edit this user */
    if (!compare_user_permissions($id, $_SESSION['userdata']['isadmin'], $_SESSION['userdata']['categories'], $_SESSION['userdata']['features'])) {
        hesk_process_messages($hesklang['npea'], 'manage_users.php');
    }
    /* Print header */
    require_once HESK_PATH . 'inc/headerAdmin.inc.php';
    /* Print main manage users page */
    require_once HESK_PATH . 'inc/show_admin_nav.inc.php';
    ?>

    <ol class="breadcrumb">
      <li><a href="manage_users.php"><?php 
    echo $hesklang['manage_users'];
    ?>
</a></li>
      <li class="active"><?php 
    echo $hesklang['editing_user'] . ' ' . $_SESSION['original_user'];
    ?>
</li>
    </ol>
    
    <div class="row" style="padding-top: 20px">
        <div class="col-md-8 col-md-offset-2">
        	<?php 
    /* This will handle error, success and notice messages */
    hesk_handle_messages();
    ?>
            
            <h3><?php 
    echo $hesklang['editing_user'] . ' ' . $_SESSION['original_user'];
    ?>
</h3>
            <h6><?php 
    echo $hesklang['req_marked_with'];
    ?>
 <font class="important">*</font></h6>
            <div class="footerWithBorder blankSpace"></div>
            
            <form role="form" class="form-horizontal" name="form1" method="post" action="manage_users.php">
                <?php 
    hesk_profile_tab('userdata', false, 'edit_user');
    ?>
            </form>
            <script language="Javascript" type="text/javascript"><!--
	            hesk_checkPassword(document.form1.newpass.value);
	            //-->
	        </script>    
        </div>
    </div>

	<?php 
    require_once HESK_PATH . 'inc/footer.inc.php';
    exit;
}
开发者ID:Orgoth,项目名称:Mods-for-HESK,代码行数:81,代码来源: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: print_login

function print_login()
{
    global $hesk_settings, $hesklang;
    // Tell header to load reCaptcha API if needed
    if ($hesk_settings['recaptcha_use'] == 2) {
        define('RECAPTCHA', 1);
    }
    $hesk_settings['tmp_title'] = $hesk_settings['hesk_title'] . ' - ' . $hesklang['admin_login'];
    require_once HESK_PATH . 'inc/header.inc.php';
    if (hesk_isREQUEST('notice')) {
        hesk_process_messages($hesklang['session_expired'], 'NOREDIRECT');
    }
    if (!isset($_SESSION['a_iserror'])) {
        $_SESSION['a_iserror'] = array();
    }
    ?>
    <div class="loginError"><?php 
    /* This will handle error, success and notice messages */
    hesk_handle_messages();
    ?>
</div>
    <div>
    <div class="panel panel-default form-signin">
        <div class="panel-heading">
            <h4><span <?php 
    echo $iconDisplay;
    ?>
><span class="mega-octicon octicon-sign-in"></span>&nbsp;</span><?php 
    echo $hesklang['admin_login'];
    ?>
</a></h4>
        </div>
        <div class="panel-body">
            <form class="form-signin form-horizontal" role="form" action="index.php" method="post" name="form1">
                <?php 
    if (in_array('pass', $_SESSION['a_iserror'])) {
        echo '<div class="form-group has-error">';
    } else {
        echo '<div class="form-group">';
    }
    ?>
                <label for="user" class="col-sm-4 control-label"><?php 
    echo $hesklang['username'];
    ?>
:</label>
                <div class="col-sm-8">
                    <?php 
    if (defined('HESK_USER')) {
        $savedUser = HESK_USER;
    } else {
        $savedUser = hesk_htmlspecialchars(hesk_COOKIE('hesk_username'));
    }
    $is_1 = '';
    $is_2 = '';
    $is_3 = '';
    $remember_user = hesk_POST('remember_user');
    if ($hesk_settings['autologin'] && (isset($_COOKIE['hesk_p']) || $remember_user == 'AUTOLOGIN')) {
        $is_1 = 'checked="checked"';
    } elseif (isset($_COOKIE['hesk_username']) || $remember_user == 'JUSTUSER') {
        $is_2 = 'checked="checked"';
    } else {
        $is_3 = 'checked="checked"';
    }
    if ($hesk_settings['list_users']) {
        echo '<select class="form-control" name="user">';
        $res = hesk_dbQuery('SELECT `user` FROM `' . hesk_dbEscape($hesk_settings['db_pfix']) . 'users` ORDER BY `user` ASC');
        while ($row = hesk_dbFetchAssoc($res)) {
            $sel = strtolower($savedUser) == strtolower($row['user']) ? 'selected="selected"' : '';
            echo '<option value="' . $row['user'] . '" ' . $sel . '>' . $row['user'] . '</option>';
        }
        echo '</select>';
    } else {
        echo '<input class="form-control" type="text" name="user" size="35" placeholder="' . htmlspecialchars($hesklang['username']) . '" value="' . $savedUser . '" />';
    }
    ?>
                </div>
            </div>
            <?php 
    if (in_array('pass', $_SESSION['a_iserror'])) {
        echo '<div class="form-group has-error">';
    } else {
        echo '<div class="form-group">';
    }
    ?>
            <label for="pass" class="col-sm-4 control-label"><?php 
    echo $hesklang['pass'];
    ?>
:</label>
            <div class="col-sm-8">
                <input type="password" class="form-control" id="pass" name="pass" size="35" placeholder="<?php 
    echo htmlspecialchars($hesklang['pass']);
    ?>
"  />
            </div>
        </div>
            <?php 
    if ($hesk_settings['secimg_use'] == 2) {
        // SPAM prevention verified for this session
        if (isset($_SESSION['img_a_verified'])) {
            echo '<img src="' . HESK_PATH . 'img/success.png" width="16" height="16" border="0" alt="" style="vertical-align:text-bottom" /> ' . $hesklang['vrfy'];
//.........这里部分代码省略.........
开发者ID:Orgoth,项目名称:Mods-for-HESK,代码行数:101,代码来源:index.php

示例15: edit_user

function edit_user()
{
    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'])) {
        $res = hesk_dbQuery("SELECT *,`heskprivileges` AS `features` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` WHERE `id`='" . intval($id) . "' LIMIT 1");
        $_SESSION['userdata'] = hesk_dbFetchAssoc($res);
        /* Store original username for display until changes are saved successfully */
        $_SESSION['original_user'] = $_SESSION['userdata']['user'];
        /* A few variables need special attention... */
        if ($_SESSION['userdata']['isadmin']) {
            $_SESSION['userdata']['features'] = $default_userdata['features'];
            $_SESSION['userdata']['categories'] = $default_userdata['categories'];
        } else {
            $_SESSION['userdata']['features'] = explode(',', $_SESSION['userdata']['features']);
            $_SESSION['userdata']['categories'] = explode(',', $_SESSION['userdata']['categories']);
        }
        $_SESSION['userdata']['cleanpass'] = '';
    }
    /* Make sure we have permission to edit this user */
    if (!compare_user_permissions($id, $_SESSION['userdata']['isadmin'], $_SESSION['userdata']['categories'], $_SESSION['userdata']['features'])) {
        hesk_process_messages($hesklang['npea'], 'manage_users.php');
    }
    /* 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';
    ?>

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

	<span class="smaller"><a href="manage_users.php" class="smaller"><?php 
    echo $hesklang['manage_users'];
    ?>
</a> &gt; <?php 
    echo $hesklang['editing_user'] . ' ' . $_SESSION['original_user'];
    ?>
</span>

	<br />&nbsp;

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

	<h3><?php 
    echo $hesklang['editing_user'] . ' ' . $_SESSION['original_user'];
    ?>
</h3>

	<p><?php 
    echo $hesklang['req_marked_with'];
    ?>
 <font class="important">*</font><br />&nbsp;</p>

	<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">
	<?php 
    hesk_profile_tab('userdata', false);
    ?>

//.........这里部分代码省略.........
开发者ID:Eximagen,项目名称:helpdesk,代码行数:101,代码来源:manage_users.php


注:本文中的hesk_handle_messages函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。