public static function drawPaginatorOld($search_counter, $url_parameters, $data_as_list_count) { $search_position = $url_parameters[search_position]; $navigation = NULL; if ($search_position != 0) { $search_position = $search_position - RealEstateAgency_Const::OBJECTS_ON_PAGE; $url_parameters[search_position] = $search_position; $navigation .= '<a href="' . tools_url($url_parameters) . '">'; $navigation .= ' Назад'; $navigation .= '</a>'; $navigation .= ' '; } if ($data_as_list_count > RealEstateAgency_Const::OBJECTS_ON_PAGE) { $search_position = $search_position + RealEstateAgency_Const::OBJECTS_ON_PAGE; $url_parameters[search_position] = $search_position; $navigation .= '<a href="' . tools_url($url_parameters) . '">'; $navigation .= 'Далі'; $navigation .= '</a>'; } return $navigation; }
<?php include "header_active.php"; ?> <div class="main_section"> <h1 class="simple_header"> Адміністрування </h1> <?php require_once 'RealEstateAgency/Util.php'; ?> <form method="POST" id="loginform" <?php echo 'action="' . tools_url(array('page' => 'admin')) . '"'; ?> > <input type="hidden" name="page" value="admin" /> <?php if ($this->incorrect_login_message) { ?> <span style="color:red;">Неправильне ім'я користувача або пароль.</span><br /> <?php } ?> <?php if ($this->incorrect_login_message_time) {
<?php include "header_active.php"; require_once 'RealEstateAgency/Object/RealEstateObjectSupport.php'; require_once 'RealEstateAgency/Object/SearchPaginator.php'; ?> <div class="main_section"> <!-- style="border: solid 1px gray;" --> <div class="search"> <!-- div search --> <div style="height:2.5em;"> <!-- div filter --> <b> <form method="POST" <?php echo 'action="' . tools_url(array('page' => $this->page, 'op_type' => $this->op_type)) . '"'; ?> > <div style="float:right;"> <!-- div filter float --> <span class="filter"> <label>Період, днів </label> <input tabindex="1000" type="text" name="search_period" maxlength="2" size="2" <?php echo "value=\"" . $this->escape($this->search_period) . "\""; ?> /> </span> <span class="filter">
if (0 == $this->op_type) { ?> Продажа <?php } else { if (1 == $this->op_type) { ?> Оренда <?php } } ?> }</b></p> <form enctype="multipart/form-data" method="POST" <?php echo 'action="' . tools_url(array('page' => 'update')) . '"'; ?> > <input type="hidden" name="op_type" <?php echo "value=\"" . $this->escape($this->op_type) . "\""; ?> /> <input type="hidden" name="page" value="update" /> <input type="hidden" name="object_id" <?php echo 'value="' . $this->escape($this->object_id) . '"'; ?>
if (0 == $this->op_type) { ?> Продажа <?php } else { if (1 == $this->op_type) { ?> Оренда <?php } } ?> }</b></p> <form method="POST" <?php echo 'action="' . tools_url(array('page' => 'object')) . '"'; ?> > <input type="hidden" name="op_type" <?php echo "value=\"" . $this->escape($this->op_type) . "\""; ?> /> <input type="hidden" name="page" value="object" /> <input type="hidden" name="action" value="submit" /> <?php if ($this->viewmode == 'firstpage') { // Page 1 // Choose the settlement.