mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-06 11:38:42 +00:00
Case fix!
This commit is contained in:
parent
db7bbb0e65
commit
bc0c62e68b
18
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
18
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG['Navigation'] = [
|
||||
'Calendar' => 'Calendar',
|
||||
];
|
||||
17
Theme/Backend/Lang/api.en.lang.php
Normal file
17
Theme/Backend/Lang/api.en.lang.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG[1] = [
|
||||
];
|
||||
28
Theme/Backend/Lang/en.lang.php
Normal file
28
Theme/Backend/Lang/en.lang.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG['Calendar'] = [
|
||||
'Blocks' => 'Blocks',
|
||||
'Day' => 'Day',
|
||||
'Interval' => 'Interval',
|
||||
'Layout' => 'Layout',
|
||||
'List' => 'List',
|
||||
'Month' => 'Month',
|
||||
'NewEvent' => 'New Event',
|
||||
'Settings' => 'Settings',
|
||||
'Timeline' => 'Timeline',
|
||||
'Week' => 'Week',
|
||||
'Year' => 'Year',
|
||||
];
|
||||
0
Theme/Backend/calendar-create.tpl.php
Normal file
0
Theme/Backend/calendar-create.tpl.php
Normal file
104
Theme/Backend/calendar-dashboard.tpl.php
Normal file
104
Theme/Backend/calendar-dashboard.tpl.php
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
<?php
|
||||
$calendar = $this->getData('calendar');
|
||||
?>
|
||||
<section class="wf-75 floatLeft">
|
||||
<section class="box w-100">
|
||||
<ul class="btns floatLeft">
|
||||
<li><a href="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/backend/calendar/dashboard?date=' . $calendar->getDate()->createModify(0, -1, 0)->format('Y-m-d')) ?>"><i class="fa fa-arrow-left"></i></a>
|
||||
<li><a href="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/backend/calendar/dashboard?date=' . $calendar->getDate()->createModify(0, 1, 0)->format('Y-m-d')) ?>"><i class="fa fa-arrow-right"></i></a>
|
||||
</ul>
|
||||
<ul class="btns floatRight">
|
||||
<li><a href=""><?= $this->l11n->lang['Calendar']['Day'] ?></a>
|
||||
<li><a href=""><?= $this->l11n->lang['Calendar']['Week'] ?></a>
|
||||
<li><a href=""><?= $this->l11n->lang['Calendar']['Month'] ?></a>
|
||||
<li><a href=""><?= $this->l11n->lang['Calendar']['Year'] ?></a>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="box w-100">
|
||||
<div class="m-calendar-month">
|
||||
<?php $current = new \phpOMS\Datatypes\SmartDateTime($calendar->getDate()->format('Y') . '-' . $calendar->getDate()->format('m') . '-' . '01'); for($i = 0; $i < 6; $i++) : ?>
|
||||
<div class="wf-100">
|
||||
<?php for($j = 0; $j < 7; $j++) : ?>
|
||||
<div contextmenu="calendar-day-menu" style="display: inline-block; box-sizing: border-box; width: 13.0%; height: 100px; border: 1px solid #000; margin: 0; padding: 3px; overflow: hidden">
|
||||
<?php if($calendar->getDate()->getFirstDayOfMonth() <= $i*7+$j+1 && $calendar->getDate()->getDaysOfMonth() >= $i*7+$j+1) {
|
||||
echo ($i*7+$j+1) . ' ' . $this->l11n->lang[0][jddayofweek($j, 1)];
|
||||
} else {
|
||||
echo (($i*7+$j+1)-$calendar->getDate()->getDaysOfMonth()) . ' ' . $this->l11n->lang[0][jddayofweek($j, 1)];
|
||||
} ?>
|
||||
<ul>
|
||||
<?php
|
||||
$events = $calendar->getEventByDate($current);
|
||||
$current->smartModify(0, 0, 1);
|
||||
foreach($events as $event) : ?>
|
||||
<li><span class="tag purple" style="white-space: nowrap;"><?= $event->getName(); ?></span>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endfor; ?>
|
||||
</div>
|
||||
<?php endfor;?>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section class="wf-25 floatLeft">
|
||||
<section class="box w-100">
|
||||
<h1>Title</h1>
|
||||
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tr>
|
||||
<td><label>Layout</label>
|
||||
<tr>
|
||||
<td><select>
|
||||
<option>
|
||||
</select>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-100">
|
||||
<h1>Calendars</h1>
|
||||
|
||||
<div class="inner">
|
||||
<ul class="boxed">
|
||||
<li><i class="fa fa-times warning"></i> <span class="check"><input type="checkbox" id="iDefault" checked><label for="iDefault">Default</label></span><i class="fa fa-cogs floatRight"></i>
|
||||
</ul>
|
||||
<div class="spacer"></div>
|
||||
<button><i class="fa fa-calendar-plus-o"></i> <?= $this->l11n->lang[0]['Add'] ?></button> <button><i class="fa fa-calendar-check-o"></i> <?= $this->l11n->lang[0]['Create'] ?></button>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<menu type="context" id="calendar-day-menu">
|
||||
<menuitem label="<?= $this->l11n->lang['Calendar']['NewEvent'] ?>"></menuitem>
|
||||
</menu>
|
||||
|
||||
<menu type="context" id="calendar-event-menu">
|
||||
<menuitem label="Edit"></menuitem>
|
||||
<menuitem label="Accept" disabled></menuitem>
|
||||
<menuitem label="Re-Schedule"></menuitem>
|
||||
<menuitem label="Decline"></menuitem>
|
||||
<menuitem label="Delete"></menuitem>
|
||||
</menu>
|
||||
|
||||
<div class="hidden">
|
||||
<section class="box">
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout">
|
||||
<tr><td><label for="iTitle">Title</label>
|
||||
<tr><td><input type="text" id="">
|
||||
<tr><td><label for="iTitle">Description</label>
|
||||
<tr><td><textarea></textarea>
|
||||
<tr><td><label for="iTitle">To</label>
|
||||
<tr><td><input type="text" id="">
|
||||
<tr><td><label for="iTitle">Files</label>
|
||||
<tr><td><input type="text" id="">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
0
Theme/Backend/calendar-element-create.tpl.php
Normal file
0
Theme/Backend/calendar-element-create.tpl.php
Normal file
0
Theme/Backend/calendar-element-single.tpl.php
Normal file
0
Theme/Backend/calendar-element-single.tpl.php
Normal file
0
Theme/Backend/calendar-single.tpl.php
Normal file
0
Theme/Backend/calendar-single.tpl.php
Normal file
Loading…
Reference in New Issue
Block a user