Example #1
0
<p>
<?php 
echo format_number_choice('[0]No groups in the database.|[1]There is actually one group in the database.|(1,+Inf]There is actually %count% groups in the database.', array('%count%' => $count), $count);
?>
</p>

<?php 
if (count($usergroup_list) > 0) {
    ?>

<table class="list">
  <thead>
    <tr>
			<th><?php 
    echo sort_link('usergroup', 'index', 'name', __('Name'), $sort_direction, $sort_column);
    ?>
</th>
      <th><?php 
    $activityItem = ConfigurationHelper::getParameter('Rename', 'activity_label');
    if (is_null($activityItem) || empty($activityItem)) {
        $activityItem = 'Activities';
    }
    echo __($activityItem);
    ?>
</th>
      <th><?php 
    echo __('Leader(s)');
    ?>
</th>
      <th><?php 
/**
 * Function used to assign link
 */
function cblink($params)
{
    global $ClipBucket;
    $name = $params['name'];
    $ref = $param['ref'];
    if ($name == 'category') {
        return category_link($params['data'], $params['type']);
    }
    if ($name == 'sort') {
        return sort_link($params['sort'], 'sort', $params['type']);
    }
    if ($name == 'time') {
        return sort_link($params['sort'], 'time', $params['type']);
    }
    if ($name == 'tag') {
        return BASEURL . '/search_result.php?query=' . urlencode($params['tag']) . '&type=' . $params['type'];
    }
    if ($name == 'category_search') {
        return BASEURL . '/search_result.php?category[]=' . $params['category'] . '&type=' . $params['type'];
    }
    if (SEO != 'yes') {
        preg_match('/http:\\/\\//', $ClipBucket->links[$name][0], $matches);
        if ($matches) {
            $link = $ClipBucket->links[$name][0];
        } else {
            $link = BASEURL . '/' . $ClipBucket->links[$name][0];
        }
    } else {
        preg_match('/http:\\/\\//', $ClipBucket->links[$name][1], $matches);
        if ($matches) {
            $link = $ClipBucket->links[$name][1];
        } else {
            $link = BASEURL . '/' . $ClipBucket->links[$name][1];
        }
    }
    $param_link = "";
    if (!empty($params['extra_params'])) {
        preg_match('/\\?/', $link, $matches);
        if (!empty($matches[0])) {
            $param_link = '&' . $params['extra_params'];
        } else {
            $param_link = '?' . $params['extra_params'];
        }
    }
    if ($params['assign']) {
        assign($params['assign'], $link . $param_link);
    } else {
        return $link . $param_link;
    }
}
Example #3
0
<table class="table tbl-custom">
	<thead>
		<tr>
			<th><?php 
echo sort_link('posts', 'Title', $linkdata->sortOrderLink, $linkdata->page, $linkdata->currentOrder);
?>
</th>
			<th><?php 
echo sort_link('posts', 'Date', $linkdata->sortOrderLink, $linkdata->page, $linkdata->currentOrder);
?>
</th>
			<th>Author</th>
			<th>Label</th>
			<th class="action-add"><a href="<?php 
echo base_url() . 'admin/posts/create';
?>
"><img src="<?php 
echo base_url();
?>
assets/admin/img/icon-add.gif" alt="Add" /></a></th>
		</tr>
	</thead>
	<tbody>
		<?php 
if (!empty($posts)) {
    ?>
		<?php 
    foreach ($posts as $post) {
        ?>
		<tr>
			<td><?php 
?>

<?php 
if (count($user_list) > 0) {
    ?>

	<p><?php 
    echo __('Please select the person for which you want to book a room:');
    ?>
</p>

	<table class="list">
		<thead>
			<tr>
				<th><?php 
    echo sort_link('home', 'usergroupIndex', 'name', __('Name'), $sort_direction, $sort_column, array('usergroupId' => $usergroup->getId()));
    ?>
</th>
				<th><?php 
    $activityItem = ConfigurationHelper::getParameter('Rename', 'activity_label');
    if (is_null($activityItem) || empty($activityItem)) {
        $activityItem = 'Activities';
    }
    echo __($activityItem);
    ?>
</th>
			</tr>
		</thead>
		<tbody>

			<?php 
Example #5
0
if (count($user_list) > 0) {
    ?>

<table class="list">
  <thead>
    <tr>
			<th><?php 
    echo sort_link('user', 'index', 'name', __('Name'), $sort_direction, $sort_column);
    ?>
</th>
			<th><?php 
    echo sort_link('user', 'index', 'login', __('Username'), $sort_direction, $sort_column);
    ?>
</th>
			<th><?php 
    echo sort_link('user', 'index', 'card_number', __('Card number'), $sort_direction, $sort_column);
    ?>
</th>
      <th><?php 
    echo __('Subscriptions');
    ?>
</th>
      <th><?php 
    echo __('Groups');
    ?>
</th>
    </tr>
  </thead>
  <tbody>

		<?php 
Example #6
0
function show_non_submitted($id)
{
    global $tool_content, $works_url, $course_id, $m, $langSubmissions, $langGroup, $course_code;
    $row = Database::get()->querySingle("SELECT *, CAST(UNIX_TIMESTAMP(deadline)-UNIX_TIMESTAMP(NOW()) AS SIGNED) AS time\n                                FROM assignment\n                                WHERE course_id = ?d AND id = ?d", $course_id, $id);
    $nav[] = $works_url;
    assignment_details($id, $row);
    if ($row->group_submissions) {
        $groups = groups_with_no_submissions($id);
        $num_results = count($groups);
        if ($num_results > 0) {
            if ($num_results == 1) {
                $num_of_submissions = $m['one_submission'];
            } else {
                $num_of_submissions = sprintf("{$m['more_submissions']}", $num_results);
            }
            $tool_content .= "\n                            <p><div class='sub_title1'>{$m['WorkGroupNoSubmission']}:</div><p>\n                            <p>{$num_of_submissions}</p>\n                            <div class='row'><div class='col-sm-12'>\n                            <div class='table-responsive'>\n                            <table class='sortable'>\n                            <tr>\n                          <th width='3'>&nbsp;</th>";
            sort_link($langGroup, 'username');
            $tool_content .= "</tr>";
            $i = 1;
            foreach ($groups as $row => $value) {
                if ($i % 2 == 1) {
                    $row_color = "class='even'";
                } else {
                    $row_color = "class='odd'";
                }
                $tool_content .= "<tr>\n                            <td>{$i}.</td>\n                            <td><a href='../group/group_space.php?course={$course_code}&amp;group_id={$row}'>{$value}</a></td>\n                            </tr>";
                $i++;
            }
            $tool_content .= "</table></div></div></div>";
        } else {
            $tool_content .= "\n                      <p class='sub_title1'>{$m['WorkGroupNoSubmission']}:</p>\n                      <div class='alert alert-warning'>{$m['NoneWorkGroupNoSubmission']}</div>";
        }
    } else {
        $users = users_with_no_submissions($id);
        $num_results = count($users);
        if ($num_results > 0) {
            if ($num_results == 1) {
                $num_of_submissions = $m['one_non_submission'];
            } else {
                $num_of_submissions = sprintf("{$m['more_non_submissions']}", $num_results);
            }
            $tool_content .= "\n                            <p><div class='sub_title1'>{$m['WorkUserNoSubmission']}:</div><p>\n                            <p>{$num_of_submissions}</p>\n                            <div class='row'><div class='col-sm-12'>\n                            <div class='table-responsive'>\n                            <table class='table-default'>\n                            <tr>\n                          <th width='3'>&nbsp;</th>";
            sort_link($m['username'], 'username');
            sort_link($m['am'], 'am');
            $tool_content .= "</tr>";
            $i = 1;
            foreach ($users as $row => $value) {
                if ($i % 2 == 1) {
                    $row_color = "class='even'";
                } else {
                    $row_color = "class='odd'";
                }
                $tool_content .= "<tr>\n                    <td>{$i}.</td>\n                    <td>" . display_user($row) . "</td>\n                    <td>" . uid_to_am($row) . "</td>\n                    </tr>";
                $i++;
            }
            $tool_content .= "</table></div></div></div>";
        } else {
            $tool_content .= "\n                      <p class='sub_title1'>{$m['WorkUserNoSubmission']}:</p>\n                      <div class='alert alert-warning'>{$m['NoneWorkUserNoSubmission']}</div>";
        }
    }
}
Example #7
0
}
?>

<table class="table tbl-custom">
	<thead>
		<tr>
			<th><?php 
echo sort_link('matches', 'Opponent', $linkdata->sortOrderLink, $linkdata->page, $linkdata->currentOrder);
?>
</th>
			<th><?php 
echo sort_link('matches', 'Date', $linkdata->sortOrderLink, $linkdata->page, $linkdata->currentOrder);
?>
</th>
			<th><?php 
echo sort_link('matches', 'Game', $linkdata->sortOrderLink, $linkdata->page, $linkdata->currentOrder);
?>
</th>
			<th class="text-center">Result</th>
			<th class="action-add"><a href="<?php 
echo current_url() . '/create';
?>
"><img src="<?php 
echo base_url();
?>
assets/admin/img/icon-add.gif" alt="Add" /></a></th>
		</tr>
	</thead>
	<tbody>
		<?php 
if (!empty($upcoming)) {
Example #8
0
  <thead>
    <tr>
		<th><?php 
    echo sort_link('message', 'index', 'subject', __('Subject'), $sort_direction, $sort_column);
    ?>
</th>
		<th><?php 
    echo sort_link('message', 'index', 'sender', __('From'), $sort_direction, $sort_column);
    ?>
</th>
		<th><?php 
    echo sort_link('message', 'index', 'recipient', __('To'), $sort_direction, $sort_column);
    ?>
</th>
		<th><?php 
    echo sort_link('message', 'index', 'created_at', __('Received/Send at'), $sort_direction, $sort_column);
    ?>
</th>
    </tr>
  </thead>
  <tbody>
		<?php 
    $is_even = false;
    ?>

		<?php 
    foreach ($message_list as $message) {
        ?>

			<?php 
        $is_even ^= true;
Example #9
0
                    <th>
                    <?php 
        $free_field_2_name = ConfigurationHelper::getParameter('Rename', 'reservation_custom_field_2');
        echo sort_link('reporting', 'index', 'reservation_custom_field_2', $free_field_2_name, $sort_direction, $sort_column);
        ?>
                    </th>
                <?php 
    }
    ?>
                <?php 
    if (in_array(92, $form->getValue('fields'))) {
        ?>
                    <th>
                    <?php 
        $free_field_3_name = ConfigurationHelper::getParameter('Rename', 'reservation_custom_field_3');
        echo sort_link('reporting', 'index', 'reservation_custom_field_3', $free_field_3_name, $sort_direction, $sort_column);
        ?>
                    </th>
                <?php 
    }
    ?>
			</tr>
		</thead>
		<tbody>
			<?php 
    $is_even = false;
    ?>

			<?php 
    foreach ($reservation_list as $reservation) {
        ?>
Example #10
0
    ?>

<?php 
}
if (count($card_list) > 0) {
    ?>

<table class="list">
  <thead>
    <tr>
			<th><?php 
    echo sort_link('card', 'index', 'card_number', __('Card number'), $sort_direction, $sort_column);
    ?>
</th>
			<th><?php 
    echo sort_link('card', 'index', 'pin_code', __('Pin code'), $sort_direction, $sort_column);
    ?>
</th>
      <th><?php 
    echo __('Owner');
    ?>
</th>
      <th><?php 
    echo __('Subscriptions');
    ?>
</th>
    </tr>
  </thead>
  <tbody>
		<?php 
    $is_even = false;
Example #11
0
 }
 // Begin the nice bordered table
 $output = border('sred', 'start') . "\n";
 $output .= '<table cellpadding="0" cellspacing="0" class="membersList">';
 $output .= '<tr>';
 $linkbase = $script_filename . '&amp;display=raidlist&amp;';
 $output .= '<th class="membersHeader"><a href="' . $linkbase . sort_link($sort, 'zone') . '">' . $wordings[$roster_conf['roster_lang']]['rosterdkp_raidzone'] . '</a></th>';
 $output .= '<th class="membersHeader"><a href="' . $linkbase . sort_link($sort, 'start') . '">' . $wordings[$roster_conf['roster_lang']]['rosterdkp_raidstart'] . '</a></th>';
 $output .= '<th class="membersHeader"><a href="' . $linkbase . sort_link($sort, 'end') . '">' . $wordings[$roster_conf['roster_lang']]['rosterdkp_raidend'] . '</a></th>';
 $output .= '<th class="membersHeader"><a href="' . $linkbase . sort_link($sort, 'hours') . '">' . ucfirst($wordings[$roster_conf['roster_lang']]['rosterdkp_hours']) . '</a></th>';
 $output .= '<th class="membersHeader"><a href="' . $linkbase . sort_link($sort, 'leader') . '">' . $wordings[$roster_conf['roster_lang']]['rosterdkp_raidleader'] . '</a></th>';
 $output .= '<th class="membersHeader" style="color: #1eff00;"><a href="' . $linkbase . sort_link($sort, 'uncommon') . '">' . $wordings[$roster_conf['roster_lang']]['uncommon'] . '</a></th>';
 $output .= '<th class="membersHeader" style="color: #0070dd;"><a href="' . $linkbase . sort_link($sort, 'rare') . '">' . $wordings[$roster_conf['roster_lang']]['rare'] . '</a></th>';
 $output .= '<th class="membersHeader" style="color: #a335ee;"><a href="' . $linkbase . sort_link($sort, 'epic') . '">' . $wordings[$roster_conf['roster_lang']]['epic'] . '</a></th>';
 $output .= '<th class="membersHeader" style="color: #ff8000;"><a href="' . $linkbase . sort_link($sort, 'legendary') . '">' . $wordings[$roster_conf['roster_lang']]['legendary'] . '</a></th>';
 $output .= '<th class="membersHeader"><a href="' . $linkbase . sort_link($sort, 'note') . '">' . $wordings[$roster_conf['roster_lang']]['note'] . '</a></th>';
 $output .= '</tr>';
 // Different Row Display Swap
 $tablerow = 1;
 // Get the members from the database
 $get_raids_query = "SELECT * FROM `" . ROSTER_ADDON_ROSTER_DKP_RAIDS . "`";
 $raids_result = $wowdb->query($get_raids_query) or die_quietly($wowdb->error(), 'roster_dkp', __FILE__, __LINE__, $get_raids_query);
 while ($raidrow = $wowdb->fetch_assoc($raids_result)) {
     // Get the amount of hours the raid took.
     $raidrow['hours'] = number_format((strtotime($raidrow['end']) - strtotime($raidrow['start'])) / 3600, 1, '.', '');
     // Get the loot counts from the loot table
     $raidrow['legendary'] = 0;
     $raidrow['epic'] = 0;
     $raidrow['rare'] = 0;
     $raidrow['uncommon'] = 0;
     $get_loot_query = "SELECT `item_id` FROM `" . ROSTER_ADDON_ROSTER_DKP_LOOT . "` WHERE `raid_id` = '" . $raidrow['raid_id'] . "'";
Example #12
0
    ?>
</a>
				<?php 
    echo sort_link('feature', 'index', 'name', __('Name'), $sort_direction, $sort_column);
    ?>
			</th>
      <th><?php 
    $activityItem = ConfigurationHelper::getParameter('Rename', 'activity_label');
    if (is_null($activityItem) || empty($activityItem)) {
        $activityItem = 'Activities';
    }
    echo __($activityItem);
    ?>
</th>
			<th><?php 
    echo sort_link('feature', 'index', 'is_exclusive', __('Exclusive'), $sort_direction, $sort_column);
    ?>
</th>
      <th>
				<?php 
    echo __('Values');
    ?>
			</th>
    </tr>
  </thead>
  <tbody>

		<?php 
    $is_even = false;
    ?>
Example #13
0
<table class="table tbl-custom">
    <thead>
        <tr>
            <th colspan="2"><?php 
echo sort_link('opponents', 'Name', $linkdata->sortOrderLink, $linkdata->page, $linkdata->currentOrder);
?>
</th>
            <th>Description</th>
            <th class="action-add"><a href="<?php 
echo current_url() . '/create';
?>
"><img src="<?php 
echo base_url();
?>
assets/admin/img/icon-add.gif" alt="Add" /></a></th>
        </tr>
    </thead>
    <tbody>
        <?php 
foreach ($opponents as $opponent) {
    ?>
        <?php 
    if (isset($opponent->logo)) {
        $logo = $opponent->logo;
    } else {
        $logo = 'nopic.jpg';
    }
    ?>
        <tr>
            <td width="40"><img src="<?php 
    echo base_url();
Example #14
0
function jakoblist_manage()
{
    global $wpdb;
    //Important! DBQueries don't work without this!
    /*
    Scan the URL for sort/order parameters and keep them.
    */
    $searchterm = $_GET['search'];
    switch ($_GET['orderby']) {
        case 'title':
            $orderby = "title";
            break;
        case 'author':
            $orderby = "author";
            break;
        case 'publisher':
            $orderby = "publisher";
            break;
        case 'info':
            $orderby = "info";
            break;
        case 'price':
            $orderby = "price";
            break;
        default:
            $orderby = "title";
    }
    switch ($_GET['order']) {
        case 'desc':
            $order = "DESC";
            break;
        default:
            $order = "";
    }
    if ($_GET['search'] == '') {
        /* Alles außer Suche */
        $books = $wpdb->get_results("SELECT * FROM `" . $wpdb->prefix . "jakoblist` order by `" . $orderby . "`" . $order . "");
    } else {
        /* Suche */
        $books = $wpdb->get_results("SELECT * FROM `" . $wpdb->prefix . "jakoblist` WHERE `title` LIKE '%" . $searchterm . "%' OR `author` LIKE '%" . $searchterm . "%' OR `publisher` LIKE '%" . $searchterm . "%' OR `info` LIKE '%" . $searchterm . "%' order by `" . $orderby . "` " . $order . "");
    }
    ?>
	<div class="wrap">
		<h2>Bücherliste verwalten <a href="admin.php?page=jakoblist_edit" class="button add-new-h2" >Neues Buch</a><?php 
    if ($_GET['search']) {
        echo '<span class=\'subtitle\'> 	Suchergebnisse für "' . $_GET['search'] . '"</span>';
    }
    ?>
</h2>
		<table style="margin-bottom:0.2em;">
			<tr>
				<td class="tablenav">
					<span class="displaying-num"><?php 
    echo count($books);
    ?>
&nbsp;<?php 
    echo 'Bücher';
    ?>
</span>
				</td>
				<td>
					<form action="admin.php?" method="get">
				</td>
				<td width="100%">
				</td>
				<td>
					<input type="text" value="<?php 
    echo $_GET["search"];
    ?>
" name="search" />
				</td>
				<td>
					<input type="hidden" name="page" value="jakoblist">
					<input type="hidden" name="orderby" value="<?php 
    echo $orderby;
    ?>
">
					<input type="hidden" name="order" value="<?php 
    echo $order;
    ?>
">
					<input type="submit" value=" <?php 
    echo _("suchen");
    ?>
 " class="button-secondary" />			
				</td>
					</form>
			</tr>
		</table>
		

	<table id="mytable" class="widefat" width="50%">
	<thead>
		<tr>
			<th width="20%" class="manage-column column-date <?php 
    sort_class('title', $orderby, $order);
    ?>
"><a href="<?php 
    echo sort_link('title', $orderby, $order, $searchterm);
    ?>
">Titel<?php 
    if ($orderby == 'title') {
        echo '<span class=sorting-indicator>&nbsp;</span>';
    }
    ?>
</a></th>
			<th width="20%" class="manage-column column-date <?php 
    sort_class('author', $orderby, $order);
    ?>
"><a href="<?php 
    echo sort_link('author', $orderby, $order, $searchterm);
    ?>
">Autor<?php 
    if ($orderby == 'author') {
        echo '<span class="sorting-indicator"></span>';
    }
    ?>
</a></th>
			<th width="20%" class="manage-column column-date <?php 
    sort_class('publisher', $orderby, $order);
    ?>
"><a href="<?php 
    echo sort_link('publisher', $orderby, $order, $searchterm);
    ?>
">Verlag<?php 
    if ($orderby == 'publisher') {
        echo '<span class="sorting-indicator"></span>';
    }
    ?>
</a></th>
			<th class="manage-column column-date <?php 
    sort_class('info', $orderby, $order);
    ?>
"><a href="<?php 
    echo sort_link('info', $orderby, $order, $searchterm);
    ?>
">Information<?php 
    if ($orderby == 'info') {
        echo '<span class="sorting-indicator"></span>';
    }
    ?>
</th>
			<th colspan="3" width="10"></th>
		</tr>
	</thead>
	<tbody>
		<?php 
    /*<tr> 
    			<form action="admin.php?page=jakoblist&func=jakoblist_add" method="post">
    				<td><input name="title" type="text" size="30%" maxlength="200"><br /><em>Max. 200 Zeichen</em></td>
    				<td><input name="author" type="text" size="30%" maxlength="200"><br /><em>Max. 200 Zeichen</em></td>
    				<td><input name="publisher" type="text" size="30%" maxlength="200"><br /><em>Max. 200 Zeichen</em></td>
    				<td><input name="info" type="text" size="50%" maxlength="200"><br /><em>Max. 200 Zeichen</em></td>
    				<td><input name="price" type="text" size="10" maxlength="10"><br /><em>Max. 200 Zeichen</em></td>
    				<td align="left" colspan="2"><input type="submit" name="add" value=" ✚ " class="button-primary" onclick=''></td>
    			</form>
    		</tr> */
    ?>
	<?php 
    global $wpdb;
    //Important! DBQueries don't work without this!
    /*if($_GET['search'] == '' ) 
    			{
     				$books 	= 	$wpdb->get_results( "SELECT * FROM `".$wpdb->prefix."jakoblist` order by `".$orderby."`".$order."" );
    			}
    		else 
    			{ 
    				$books 	= 	$wpdb->get_results( "SELECT * FROM `".$wpdb->prefix."jakoblist` WHERE `title` LIKE '%".$searchterm."%' OR `author` LIKE '%".$searchterm."%' OR `publisher` LIKE '%".$searchterm."%' OR `info` LIKE '%".$searchterm."%' order by `".$orderby."` ".$order."" );	
    			}*/
    if (count($books) > 0) {
        /* keine Suchergebnisse */
        foreach ($books as $book) {
            $thecurrency = '&nbsp;€';
            //temporary, check back soon
            $status = !$book->active ? '<br /><span class="post-state">Entwurf</span>' : '';
            $class = 'alternate' != $class ? 'alternate' : '';
            $editlink = get_bloginfo('wpurl') . '/wp-admin/admin.php?page=jakoblist_edit&id=' . $book->id;
            echo '<form action="" method="post"><tr class="' . $class . '">';
            echo '<td><strong><a class="row-title" href="' . $editlink . '">' . strclean($book->title) . '</a>' . $status . '</strong></td>';
            echo '<td>' . strclean($book->author) . '</td>';
            echo '<td>' . strclean($book->publisher) . '</td>';
            echo '<td>' . strclean($book->info) . '</td>';
            echo '<td align="right">' . strclean($book->price) . $thecurrency . '</td>';
            /*echo '<td align="left"><input type="button" name="edit" value=" ✎ " class="button-secondary" onclick=location.href="';
            		echo $editlink.'"';
            		echo '></td>';*/
            echo '<td align="center"><input type="button" name="-" value=" - " class="button-secondary" onclick="if(confirm(\'Sind Sie sicher?\')) {location.href=\'';
            echo bloginfo('wpurl') . '/wp-admin/admin.php?page=jakoblist&func=jakoblist_remove&id=' . $book->id . '\'} else {return false;}"';
            echo '></td>';
            echo '</tr></form>';
        }
    }
    ?>


	</tbody>
	</table>
	</div>
	<?php 
}
Example #15
0
?>
        <?php 
echo sort_link('room', 'index', 'name', __('Name'), $sort_direction, $sort_column);
?>
        </th>
        <th>
        <?php 
$activityItem = ConfigurationHelper::getParameter('Rename', 'activity_label');
if (is_null($activityItem) || empty($activityItem)) {
    $activityItem = 'Activities';
}
echo __($activityItem);
?>
        </th>
        <th><?php 
echo sort_link('room', 'index', 'capacity', __('Capacity'), $sort_direction, $sort_column);
?>
</th>
        <th><?php 
echo __('Features');
?>
</th>
        <th><?php 
echo __('Physical access');
?>
</th>
        <th><?php 
echo __('Opening time');
?>
</th>
        <th><?php 
Example #16
0
    $result = sort_pages($_POST['sortable']);
    if (!$result) {
        exit(FALSE);
    }
    exit(json_encode($result));
}
//сортировка ссылок
if ($_POST['sort_link']) {
    //проверяем есть ли идентификатор информера к которому принадлежат ссылки
    if (array_key_exists('parent', $_POST)) {
        $parent = $_POST['parent'];
        unset($_POST['parent']);
    } else {
        exit(FALSE);
    }
    $result = sort_link($_POST['sort_link'], $parent);
    if (!$result) {
        exit(FALSE);
    }
    exit(json_encode($result));
}
//сортировка информеров
if ($_POST['sort_inf']) {
    $result = sort_informers($_POST['sort_inf']);
    if (!$result) {
        exit(FALSE);
    }
    exit(json_encode($result));
}
//получение массива каталога
$cat = catalog();
Example #17
0
    ?>
			</th>
      <th class="small"><?php 
    echo __('Color');
    ?>
</th>
			<th><?php 
    echo sort_link('activity', 'index', 'minimum_occupation', __('Minimum occupation'), $sort_direction, $sort_column);
    ?>
</th>
			<th><?php 
    echo sort_link('activity', 'index', 'maximum_occupation', __('Maximum occupation'), $sort_direction, $sort_column);
    ?>
</th>
			<th><?php 
    echo sort_link('activity', 'index', 'minimum_delay', __('Minimum delay'), $sort_direction, $sort_column);
    ?>
</th>
      <th><?php 
    echo __('Reservation reasons');
    ?>
</th>
    </tr>
  </thead>
  <tbody>

		<?php 
    $is_even = false;
    ?>

    <?php 
Example #18
0
    ?>

<table class="list">
  <thead>
    <tr>
			<th class="small"></th>
			<th><?php 
    echo sort_link('closeperiod', 'index', 'start', __('Start'), $sort_direction, $sort_column, array('roomId' => $room->getId()));
    ?>
</th>
			<th><?php 
    echo sort_link('closeperiod', 'index', 'stop', __('Stop'), $sort_direction, $sort_column, array('roomId' => $room->getId()));
    ?>
</th>
			<th><?php 
    echo sort_link('closeperiod', 'index', 'reason', __('Reason'), $sort_direction, $sort_column, array('roomId' => $room->getId()));
    ?>
</th>
    </tr>
  </thead>
  <tbody>
		<?php 
    $is_even = false;
    ?>

    <?php 
    foreach ($closeperiod_list as $closeperiod) {
        ?>

		<?php 
        $is_even ^= true;
Example #19
0
      <th><?php 
    echo __('Up PID');
    ?>
</th>
      <th><?php 
    echo __('Down PID');
    ?>
</th>
      <th>
				<?php 
    echo sort_link('energyaction', 'index', 'start', __('Start'), $sort_direction, $sort_column);
    ?>
			</th>
      <th>
				<?php 
    echo sort_link('energyaction', 'index', 'stop', __('Stop'), $sort_direction, $sort_column);
    ?>
			</th>
    </tr>
  </thead>
  <tbody>
		<?php 
    $is_even = false;
    ?>

    <?php 
    foreach ($energyaction_list as $energyaction) {
        ?>

		<?php 
        $is_even ^= true;