示例#1
0
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/helper.php';
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/reservation.js');
if (!checkUserAccess(JFactory::getUser()->id, "manage_reservations")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getComponentName(), $msg);
}
class JHotelReservationViewReservation extends JViewLegacy
{
    protected $item;
    protected $state;
    /**
     * Display the view
     */
    public function display($tpl = null)
    {
        $lang = JFactory::getLanguage();
        $this->item = $this->get('Item');
        $this->state = $this->get('State');
        $this->appSettings = JHotelUtil::getInstance()->getApplicationSettings();
        $this->roomTypes = $this->get('RoomTypesOptions');
示例#2
0
        $color = "red";
        $color_version = "red";
    }
    if ($row == "2") {
        $row = "1";
    } else {
        $row = "2";
    }
    $juri_root = JURI::root();
    $juri_root = str_replace("plugins/system/ijoomlaupdate/ijoomlaupdate/", "", $juri_root);
    echo "<tr class=\"row" . $row . "\">";
    echo "<td>";
    echo $i++;
    echo "</td>";
    echo "<td width=\"30%\" style=\"color:" . $color . "\" >";
    echo getComponentName($component);
    echo "</td>";
    echo "<td align=\"center\" style=\"color:" . $color_version . "\" >";
    echo $current_version;
    echo "</td>";
    echo "<td align=\"center\" style=\"color:" . $color_version . "\" >";
    echo $latest_version;
    echo "</td>";
    echo "<td align=\"center\">";
    echo "<a href=\"" . $list_changelog[$component] . "\" target=\"_blank\">Change Log</a>";
    echo "</td>";
    echo "<td align=\"center\">";
    echo '<a href="#" onclick="window.parent.location.href=\'' . $juri_root . "administrator/index.php?option=com_ijoomlainstaller" . '\';">Upgrade</a>';
    echo "</td>";
    echo "</tr>";
}