copy current state of medienstaatsvertrag.org, to be verified
This commit is contained in:
1
website/agenda/planung/templates/.htaccess
Normal file
1
website/agenda/planung/templates/.htaccess
Normal file
@@ -0,0 +1 @@
|
||||
Deny from all
|
||||
1
website/agenda/planung/templates/.old/.htaccess
Normal file
1
website/agenda/planung/templates/.old/.htaccess
Normal file
@@ -0,0 +1 @@
|
||||
Deny from all
|
||||
@@ -0,0 +1,378 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title>edit event</title>
|
||||
<link href="css/event.css" type="text/css" rel="stylesheet"/>
|
||||
<link href="css/jquery-ui-timepicker.css" type="text/css" rel="stylesheet" />
|
||||
|
||||
<!-- for edit series-->
|
||||
<script src="js/series.js" type="text/javascript"></script>
|
||||
<script src="js/edit_event.js" type="text/javascript"></script>
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
<script>
|
||||
var event_id='<TMPL_VAR event_id>';
|
||||
var selectImageId='';
|
||||
|
||||
/*
|
||||
$(document).ready(function(){
|
||||
$('textarea').each(function() {
|
||||
$(this).height($(this).prop('scrollHeight'));
|
||||
});
|
||||
$('textarea').on('change', function() {
|
||||
$(this).height($(this).prop('scrollHeight'));
|
||||
});
|
||||
});
|
||||
*/
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<TMPL_UNLESS new_event>
|
||||
<TMPL_IF .allow_create_download>
|
||||
<form>
|
||||
<TMPL_IF download>
|
||||
<textarea type="hidden" name="event_id" style="width:100%;height:10em;"><TMPL_VAR download></textarea>
|
||||
</TMPL_IF>
|
||||
<input type="hidden" name="event_id" value="<TMPL_VAR event_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR series_id>">
|
||||
<input type="submit" name="action" value="download">
|
||||
</form>
|
||||
</TMPL_IF>
|
||||
</TMPL_UNLESS>
|
||||
|
||||
<!-- edit -->
|
||||
<TMPL_IF .allow_update_event>
|
||||
<div class="editor">
|
||||
|
||||
<div class="buttons" id="back_to_calendar">
|
||||
<button onclick="cancel_edit_event();return false;">back to calendar</button>
|
||||
</div>
|
||||
|
||||
<!-- series -->
|
||||
<TMPL_UNLESS .hide_series>
|
||||
<TMPL_IF series_id>
|
||||
<table class="series">
|
||||
<tr><td>
|
||||
<!-- header -->
|
||||
<div class="header">
|
||||
<TMPL_VAR series_name> <TMPL_IF title>- <TMPL_VAR title></TMPL_IF>
|
||||
<!--<aTMPL_UNLESS new_event>-->
|
||||
<TMPL_IF .allow_read_series>
|
||||
<button onclick="view_series_details('<TMPL_VAR series_id>','<TMPL_VAR .studio_id>')" style="float:right">
|
||||
edit series
|
||||
</button>
|
||||
</TMPL_IF>
|
||||
<!--</aTMPL_UNLESS>-->
|
||||
</div>
|
||||
</td></tr>
|
||||
<tr class="series_details_<TMPL_VAR series_id>" style="display:none">
|
||||
<td>
|
||||
<div id="series_details_<TMPL_VAR series_id>">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</TMPL_IF>
|
||||
</TMPL_UNLESS>
|
||||
|
||||
<div>
|
||||
<div class="header">Event</div>
|
||||
|
||||
<!-- edit event -->
|
||||
<form method="post" action="event.cgi" id="event_<TMPL_VAR event_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR series_id>">
|
||||
<TMPL_UNLESS new_event>
|
||||
<input type="hidden" name="event_id" value="<TMPL_VAR event_id>">
|
||||
</TMPL_UNLESS>
|
||||
<input type="hidden" name="debug" value="sql">
|
||||
|
||||
<!-- buttons -->
|
||||
<!--
|
||||
<TMPL_IF .allow_update_event>
|
||||
<button class="edit_time_<TMPL_VAR event_id>" onclick="editEventTime('<TMPL_VAR event_id>');return false;">edit</button>
|
||||
</TMPL_IF>
|
||||
-->
|
||||
|
||||
<!-- show event event summary -->
|
||||
<!-- <TMPL_IF new_event>style="display:none"</TMPL_IF> -->
|
||||
<!--
|
||||
<TMPL_IF .allow_read_event>
|
||||
<table id="event_summary_<TMPL_VAR event_id>" >
|
||||
<TMPL_UNLESS new_event>
|
||||
<tr>
|
||||
<td class="label">when</td>
|
||||
<td><TMPL_VAR weekday_short_name>, <TMPL_VAR start_date_name>, <TMPL_VAR start_time_name> - <TMPL_VAR end_time>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_UNLESS>
|
||||
|
||||
<tr>
|
||||
<td class="label">title</td>
|
||||
<td><TMPL_VAR series_name> <TMPL_IF title>- <TMPL_VAR title></TMPL_IF> <TMPL_VAR user_title></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label">status</td>
|
||||
<td>
|
||||
<TMPL_IF live>live</TMPL_IF>
|
||||
<TMPL_IF published>published</TMPL_IF>
|
||||
<TMPL_IF preproduced>preproduced</TMPL_IF>
|
||||
<TMPL_IF archived>archived</TMPL_IF>
|
||||
<TMPL_IF rerun>rerun</TMPL_IF>
|
||||
<TMPL_IF disable_event_sync>no sync</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label">episode</td>
|
||||
<td><TMPL_VAR episode></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</TMPL_IF>
|
||||
-->
|
||||
|
||||
<!-- edit event time -->
|
||||
<!-- <TMPL_UNLESS new_event>style="display:none"</TMPL_UNLESS> -->
|
||||
<table id="edit_time_<TMPL_VAR event_id>" class="edit_event" >
|
||||
<TMPL_IF .allow_update_event_time>
|
||||
<tr>
|
||||
<td class="label">when</td>
|
||||
<td>
|
||||
<TMPL_UNLESS new_event>
|
||||
<TMPL_VAR weekday_short_name>, <TMPL_VAR start_date_name>, <TMPL_VAR start_time_name> - <TMPL_VAR end_time><br>
|
||||
</TMPL_UNLESS>
|
||||
start
|
||||
<span id="start_date_weekday"></span>
|
||||
<input id="start_date" class="date" name="start_date" value="<TMPL_VAR start>" onchange="onDateModified()">
|
||||
duration <select id="duration" name="duration" onchange="onDateModified()"> minutes
|
||||
<TMPL_LOOP durations>
|
||||
<option value="<TMPL_VAR value>" <TMPL_IF selected>selected="selected"</TMPL_IF>><TMPL_VAR name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
end
|
||||
<input id="end_date" class="date" name="end_date" value="<TMPL_VAR end>" disabled><br>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<tr>
|
||||
<td class="label">status</td>
|
||||
<td>
|
||||
<TMPL_IF .allow_update_event_live>
|
||||
<input type="checkbox" name="live" <TMPL_IF live>checked="checked"</TMPL_IF> value="1"> live
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow_update_event_published>
|
||||
<input type="checkbox" name="published" <TMPL_IF published>checked="checked"</TMPL_IF> value="1"> published
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow_update_event_preproduced>
|
||||
<input type="checkbox" name="preproduced" <TMPL_IF preproduced>checked="checked"</TMPL_IF> value="1"> preproduced
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow_update_event_archived>
|
||||
<input type="checkbox" name="archived" <TMPL_IF archived>checked="checked"</TMPL_IF> value="1"> archived
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow_update_event_rerun>
|
||||
<input type="checkbox" name="rerun" <TMPL_IF rerun>checked="checked"</TMPL_IF> value="1"> rerun
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow_disable_event_sync>
|
||||
<input type="checkbox" name="disable_event_sync" <TMPL_IF rerun>checked="checked"</TMPL_IF> value="1"> no sync
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<TMPL_IF .allow_update_event_episode>
|
||||
<tr>
|
||||
<td class="label">episode</td>
|
||||
<td><input name="episode" value="<TMPL_VAR episode>" class="episode"></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
</table>
|
||||
|
||||
<div class="header">content</div>
|
||||
|
||||
<!--
|
||||
<TMPL_IF .allow_update_event>
|
||||
<button class="edit_content_<TMPL_VAR event_id>" onclick="editEventContent('<TMPL_VAR event_id>');return false;">edit</button>
|
||||
</TMPL_IF>
|
||||
-->
|
||||
|
||||
<!-- show event content -->
|
||||
<TMPL_IF read_event>
|
||||
<table id="show_content_<TMPL_VAR event_id>" <TMPL_IF new_event>style="display:none"</TMPL_IF> >
|
||||
<tr>
|
||||
<td class="label">excerpt</td>
|
||||
<td><TMPL_VAR excerpt><TMPL_VAR user_excerpt></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label">description</td>
|
||||
<td>
|
||||
<img src="<TMPL_VAR image>" style="float:right;padding-left:1em">
|
||||
<div><TMPL_VAR user_content_prefix></div>
|
||||
<div><TMPL_VAR html_content escape=0></div>
|
||||
<div><TMPL_VAR user_content_suffix></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- <TMPL_UNLESS new_event>style="display:none"</TMPL_UNLESS> -->
|
||||
<!-- edit event content -->
|
||||
<table id="edit_content_<TMPL_VAR event_id>" class="edit_event" >
|
||||
<!--
|
||||
<TMPL_IF .allow_update_event_user_content>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<button class="edit_content_<TMPL_VAR event_id>" onclick="editUserContent('<TMPL_VAR event_id>');return false;">extra content</button>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
-->
|
||||
<tr>
|
||||
<td class="label">title</td>
|
||||
<td>
|
||||
<TMPL_VAR series_name> -
|
||||
<TMPL_IF .allow_update_event_content>
|
||||
<input name="title" value="<TMPL_VAR title>">
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR title>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow_update_event_title_extension>
|
||||
<input name="user_title" value="<TMPL_VAR user_title>" id="user_title_<TMPL_VAR event_id>">
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR user_title>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label">excerpt</td>
|
||||
<td>
|
||||
<TMPL_IF .allow_update_event_content>
|
||||
<textarea name="excerpt" class="excerpt"><TMPL_VAR excerpt></textarea>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR excerpt>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="user_excerpt_<TMPL_VAR event_id>">
|
||||
<td class="label">user excerpt</td>
|
||||
<td>
|
||||
<TMPL_IF .allow_update_event_user_excerpt_extension>
|
||||
<textarea class="excerpt" name="user_excerpt" ><TMPL_VAR user_excerpt></textarea>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR user_excerpt>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="user_content_prefix_<TMPL_VAR event_id>">
|
||||
<td class="label">current topics</td>
|
||||
<td class="edit_user_content_prefix">
|
||||
<TMPL_IF .allow_update_event_user_content>
|
||||
<textarea name="user_content_prefix"><TMPL_VAR user_content_prefix></textarea>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR html_user_content_prefix escape=0>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label">content</td>
|
||||
<td class="edit_content">
|
||||
<TMPL_IF .allow_update_event_topic>
|
||||
<textarea name="content"><TMPL_VAR content></textarea>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR html_content escape=0>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!--
|
||||
<tr id="user_content_suffix_<TMPL_VAR event_id>">
|
||||
<td class="label">user content</td>
|
||||
<td class="edit_user_content_suffix">
|
||||
<TMPL_IF .allow_update_event_user_content>
|
||||
<textarea name="user_content_suffix"><TMPL_VAR user_content_suffix></textarea>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR html_user_content_prefix escape=0>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
|
||||
<tr>
|
||||
<td class="label">
|
||||
image
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF .allow_update_event_content>
|
||||
<button onclick="selectImage(<TMPL_VAR .studio_id>,'image_<TMPL_VAR event_id>','<TMPL_VAR series_name escape=HTML>');return false;"
|
||||
style="padding:0;"
|
||||
>
|
||||
<img id="imagePreview" src="<TMPL_VAR image>">
|
||||
</button>
|
||||
<input id="image_<TMPL_VAR event_id>" name="image" value="<TMPL_VAR image>" class="image" style="float:right">
|
||||
<TMPL_ELSE>
|
||||
<img src="<TMPL_VAR image>">
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="buttons" style="text-align:center">
|
||||
<TMPL_IF show_new_event_from_schedule>
|
||||
<TMPL_IF .allow_create_event_from_schedule>
|
||||
<button type="submit" name="action" value="create_event_from_schedule">create</button>
|
||||
</TMPL_IF>
|
||||
<TMPL_ELSIF show_new_event>
|
||||
<TMPL_IF .allow_create_event>
|
||||
<button type="submit" name="action" value="create_event">create</button>
|
||||
</TMPL_IF>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_IF .allow_update_event>
|
||||
<input type="submit" name="action" value="save">
|
||||
</TMPL_IF>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF .allow_delete_event>
|
||||
<TMPL_UNLESS new_event>
|
||||
<input type="submit" name="action" value="delete"
|
||||
onclick="commitForm('event_<TMPL_VAR event_id>','delete','delete event');return false;"
|
||||
>
|
||||
</TMPL_UNLESS>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<TMPL_IF modified_at>
|
||||
<div class="label right">last modified at <TMPL_VAR modified_at> by <TMPL_VAR modified_by>.</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<div id="selectImage"></div>
|
||||
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
152
website/agenda/planung/templates/.old/event_manager.html
Normal file
152
website/agenda/planung/templates/.old/event_manager.html
Normal file
@@ -0,0 +1,152 @@
|
||||
<TMPL_INCLUDE header.html>
|
||||
|
||||
<h1><a href="event_manager.cgi">Sendungen verwalten</a></h1>
|
||||
|
||||
<TMPL_INCLUDE menu.html>
|
||||
<style>
|
||||
td,th,input {
|
||||
font-size:10px;
|
||||
line-height:100%
|
||||
}
|
||||
table{
|
||||
wwidth:1000px;
|
||||
}
|
||||
</style>
|
||||
projects:
|
||||
<TMPL_LOOP projects>
|
||||
<TMPL_LOOP months>
|
||||
<a href="event_manager.cgi?from_date=<TMPL_VAR start>&till_date=<TMPL_VAR end>"><TMPL_VAR title> <TMPL_VAR month_name></a> |
|
||||
</TMPL_LOOP>
|
||||
</TMPL_LOOP>
|
||||
|
||||
<div id="print_header">
|
||||
<TMPL_IF event_count><TMPL_VAR event_count> Treffer:</TMPL_IF>
|
||||
</div>
|
||||
<TMPL_VAR is_empty>
|
||||
|
||||
<div style="text-align:right">
|
||||
<form action="event_manager.cgi">
|
||||
<input name="search">
|
||||
<input type="submit" value="suchen">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th>Progamm</th>
|
||||
<th>Wochentag</th>
|
||||
<th>Datum</th>
|
||||
<th>Start</th>
|
||||
<th>Ende</th>
|
||||
<th>Bild</th>
|
||||
<th>Sendereihe</th>
|
||||
<th>Titel</th>
|
||||
<th>Auszug</th>
|
||||
</tr>
|
||||
|
||||
<TMPL_LOOP events>
|
||||
<tr>
|
||||
<td>
|
||||
<TMPL_VAR program>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_VAR weekday_name>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_VAR start_date>
|
||||
</td>
|
||||
|
||||
<td style="background-color:<TMPL_IF same_time_alert_old>ffa</TMPL_IF><TMPL_IF same_time_alert_new>faa</TMPL_IF>">
|
||||
<TMPL_VAR start_time_name>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_VAR end_time_name>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="<TMPL_VAR image>"><img src="<TMPL_VAR image>" width="75" height="75"></a>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_VAR series_name>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_VAR title>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_VAR excerpt >
|
||||
<a href="#event_<TMPL_VAR event_id>" onclick="showEventComments('<TMPL_VAR event_id>','event_<TMPL_VAR event_id>_comments_container');return false;" >
|
||||
<p><TMPL_VAR comment_count> Kommentare ,
|
||||
<a href="#" onclick="toggle('event_<TMPL_VAR event_id>_options');return false;">mehr...</a>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr id="event_<TMPL_VAR event_id>_comments_container" style="display:none">
|
||||
<td colspan="20">
|
||||
<div id="event_<TMPL_VAR event_id>_comments">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="event_<TMPL_VAR event_id>_options" style="display:none">
|
||||
<td colspan="20">
|
||||
<div >
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<th colspan=7> </th>
|
||||
<th>erstellt</th>
|
||||
<th>geändert</th>
|
||||
<th>Referenz</th>
|
||||
<th>ID</th>
|
||||
<TMPL_IF delete_events>
|
||||
<th>Löschen</th>
|
||||
</TMPL_IF>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan=7> </td>
|
||||
|
||||
<td>
|
||||
<TMPL_VAR created_at >
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_VAR modified_at >
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_VAR reference >
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="<TMPL_VAR cache_base_url>/<TMPL_VAR controller_event>/<TMPL_VAR event_id>.html"><TMPL_VAR event_id></a>
|
||||
</td>
|
||||
|
||||
<TMPL_IF delete_event>
|
||||
<td>
|
||||
<form action="event_manager.cgi" method="post">
|
||||
<input type="hidden" name="delete_event" value="<TMPL_VAR event_id>">
|
||||
<input type="hidden" name="from_date" value="<TMPL_VAR from_date>">
|
||||
<input type="hidden" name="till_date" value="<TMPL_VAR till_date>">
|
||||
<input type="submit" value="loeschen">
|
||||
</form>
|
||||
</td>
|
||||
</TMPL_IF>
|
||||
|
||||
</td></tr></table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</TMPL_LOOP>
|
||||
</table>
|
||||
|
||||
283
website/agenda/planung/templates/.old/menu.html
Normal file
283
website/agenda/planung/templates/.old/menu.html
Normal file
@@ -0,0 +1,283 @@
|
||||
<script type="text/javascript">
|
||||
function run(menu_id){
|
||||
var url=$("#"+menu_id).val();
|
||||
//alert(url);
|
||||
if (url!='' && url!='undefined'){
|
||||
load(url);
|
||||
}
|
||||
}
|
||||
|
||||
function getParentDiv(elem,type,level){
|
||||
if (level==null || level=='') level=0;
|
||||
//alert(level)
|
||||
if (level>5) return null;
|
||||
elem=elem.parent();
|
||||
if (elem=='') return null;
|
||||
if (elem.is(type)){
|
||||
//if (elem.parent().parent().attr('id')=='#calcms_admin_menu')
|
||||
return elem;
|
||||
//return null;
|
||||
}
|
||||
return getParentDiv(elem,type,level+1);
|
||||
}
|
||||
|
||||
$(document).ready(
|
||||
function() {
|
||||
|
||||
if ($('#calcms_admin_menu').length == 0) return;
|
||||
var menus=new Array("event_submenu","comment_submenu", "pic_submenu", "update_agenda_submenu","system_submenu");
|
||||
|
||||
//$("#calcms_admin_menu").height($(document).height());
|
||||
|
||||
for (var index in menus){
|
||||
var menu_id="#"+menus[index];
|
||||
$(menu_id).hide();
|
||||
}
|
||||
/*
|
||||
$('#calcms_admin_menu li li').hover(
|
||||
function() {
|
||||
jQuery(this).stop(true, true).animate({
|
||||
fontSize: '+=3'
|
||||
});
|
||||
}, function() {
|
||||
jQuery(this).stop(true, true).animate({
|
||||
fontSize: '-=3'
|
||||
});
|
||||
}
|
||||
);
|
||||
*/
|
||||
var url=getController();
|
||||
url=url.replace("&","&");
|
||||
|
||||
//hide menus on index or /admin/
|
||||
if (url==null || url=='')return;
|
||||
|
||||
$("select[id$='_select'] option").each(
|
||||
function(){
|
||||
if ($(this).val()==url){
|
||||
//get option
|
||||
$(this).attr('selected','true');
|
||||
|
||||
// select
|
||||
var elem=$(this).parent();
|
||||
if (elem==null)return;
|
||||
elem.css("opacity","1.0");
|
||||
|
||||
//menu
|
||||
var menu=getParentDiv(elem,'div');
|
||||
menu.show();
|
||||
//menu point
|
||||
elem=getParentDiv(elem,'li');
|
||||
if (elem!=null)elem.css("opacity","1.0");
|
||||
}
|
||||
}
|
||||
)
|
||||
$("a[id$='_menupoint']").each(
|
||||
function(){
|
||||
if ($(this).attr('href')==url){
|
||||
//a
|
||||
$(this).css("opacity","1.0");
|
||||
|
||||
//menu
|
||||
var elem=getParentDiv($(this),'div');
|
||||
elem.show();
|
||||
//menu point
|
||||
elem=getParentDiv($(this),'li');
|
||||
if (elem!=null)elem.css("opacity","1.0");
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
</script>
|
||||
|
||||
<!--
|
||||
<table style="border:0;margin:0;position:absolute;left:-5px;top:118px;;height:100%">
|
||||
<tr><td>
|
||||
-->
|
||||
<center>
|
||||
<div id="calcms_admin_menu">
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/"><img width="20px" height="20px" src="<TMPL_VAR static_files_url>/style/logo.jpg" alt="Hauptseite"/> </a>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/agenda/programm.html">Programmplan</a>
|
||||
|
||||
</li>
|
||||
|
||||
<TMPL_IF access_events>
|
||||
<li>
|
||||
<a href="#" onclick="toggle('event_submenu');return false;">Sendungen</a>
|
||||
<div id="event_submenu">
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<select id="event_manager_select" onchange="run('event_manager_select')">
|
||||
<option value="">wählen</option>
|
||||
<TMPL_UNLESS read_event_all>
|
||||
<TMPL_LOOP projects>
|
||||
<TMPL_LOOP months>
|
||||
<option value="event_manager.cgi?from_date=<TMPL_VAR start>&till_date=<TMPL_VAR end>&location=<TMPL_VAR user escape=url>"><TMPL_VAR year>-<TMPL_VAR month> <TMPL_VAR title></option>
|
||||
</TMPL_LOOP>
|
||||
</TMPL_LOOP>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_LOOP projects>
|
||||
<TMPL_LOOP months>
|
||||
<option value="event_manager.cgi?from_date=<TMPL_VAR start>&till_date=<TMPL_VAR end>"><TMPL_VAR year>-<TMPL_VAR month> <TMPL_VAR title></option>
|
||||
</TMPL_LOOP>
|
||||
</TMPL_LOOP>
|
||||
</TMPL_UNLESS>
|
||||
</select>
|
||||
</li>
|
||||
|
||||
<TMPL_IF create_event>
|
||||
<li>
|
||||
<a id="wiki_editor_menupoint" href="wiki_editor.cgi">Editor</a>
|
||||
</li>
|
||||
</TMPL_IF>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- pic manager -->
|
||||
<TMPL_IF access_images>
|
||||
<li>
|
||||
<a href="#" onclick="toggle('pic_submenu');return false;">Bilder</a><br/>
|
||||
<div id="pic_submenu">
|
||||
<ul>
|
||||
<li>
|
||||
<select id="pic_manager_select" onchange="run('pic_manager_select')">
|
||||
<option value="">wählen</option>
|
||||
<TMPL_LOOP projects>
|
||||
<TMPL_LOOP months>
|
||||
<option value="image_manager.cgi?from=<TMPL_VAR start>&till=<TMPL_VAR end>"><TMPL_VAR year>-<TMPL_VAR month> <TMPL_VAR title></option>
|
||||
</TMPL_LOOP>
|
||||
</TMPL_LOOP>
|
||||
<option value="image_manager.cgi?search=neu">nicht zugeordnet</option>
|
||||
<option value="image_manager.cgi">alle</option>
|
||||
</select>
|
||||
</li>
|
||||
|
||||
<!-- pic upload -->
|
||||
<TMPL_IF create_image>
|
||||
<li>
|
||||
<a id="pic_upload_menupoint" href="image_upload.cgi">neues Bild</a>
|
||||
</li>
|
||||
</TMPL_IF>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- comment manager -->
|
||||
<TMPL_IF access_comments>
|
||||
<li>
|
||||
<a href="#" onclick="toggle('comment_submenu');return false;">Kommentare</a>
|
||||
<div id="comment_submenu">
|
||||
<ul>
|
||||
<li>Aktualität<br/>
|
||||
<select id="comment_by_age_select" onchange="run('comment_by_age_select')">
|
||||
<option value="">wählen</option>
|
||||
<option value="comment_manager.cgi?age=1">Stunde </option>
|
||||
<option value="comment_manager.cgi?age=6">6 Stunden</option>
|
||||
<option value="comment_manager.cgi?age=24">24 Stunden</option>
|
||||
<option value="comment_manager.cgi?age=168">Woche</option>
|
||||
<option value="comment_manager.cgi?age=720">Monat</option>
|
||||
<option value="comment_manager.cgi?age=2160">3 Monate</option>
|
||||
<option value="comment_manager.cgi?age=4360">6 Monate</option>
|
||||
<option value="comment_manager.cgi">alle</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>Sendungen<br/>
|
||||
<select id="comment_by_date_select" onchange="run('comment_by_date_select')">
|
||||
<option value="">wählen</option>
|
||||
<TMPL_LOOP projects>
|
||||
<TMPL_LOOP months>
|
||||
<option value="comment_manager.cgi?from=<TMPL_VAR start>&till=<TMPL_VAR end>"><TMPL_VAR year>-<TMPL_VAR month> <TMPL_VAR title></option>
|
||||
</TMPL_LOOP>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- update agenda -->
|
||||
<TMPL_IF access_sync>
|
||||
<li id="update_agenda_menu">
|
||||
<a href="#" onclick="toggle('update_agenda_submenu');return false;">Synchronisierung</a>
|
||||
<div id="update_agenda_submenu">
|
||||
<ul>
|
||||
|
||||
<!--
|
||||
<TMPL_IF sync_all>
|
||||
<li>
|
||||
<select id="update_agenda_select" onchange="run('update_agenda_select')">
|
||||
<option value="">wählen</option>
|
||||
<option value="update_agenda.cgi">geändert</option>
|
||||
<TMPL_LOOP projects>
|
||||
<TMPL_LOOP months>
|
||||
<option value="update_agenda.cgi?update=all&from=<TMPL_VAR start>&till=<TMPL_VAR end>"><TMPL_VAR year>-<TMPL_VAR month> <TMPL_VAR title></option>
|
||||
</TMPL_LOOP>
|
||||
</TMPL_LOOP>
|
||||
<option value="update_agenda.cgi?update=all">alles</option>
|
||||
</select>
|
||||
</li>
|
||||
</TMPL_IF>
|
||||
-->
|
||||
<TMPL_IF sync_own>
|
||||
<li>
|
||||
<a id="jobs_menupoint" href="jobs.cgi">Jobs</a>
|
||||
</li>
|
||||
</TMPL_IF>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- admin -->
|
||||
<TMPL_IF access_system>
|
||||
<li id="system_menu">
|
||||
<a href="#" onclick="toggle('system_submenu');return false;">System</a>
|
||||
<div id="system_submenu">
|
||||
<ul>
|
||||
<li>
|
||||
<a id="clear_cache_menupoint" href="clear_cache.cgi">Cache löschen</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="compress_menupoint" href="compress_templates.cgi">compress templates</a>
|
||||
|
||||
<li>
|
||||
<a id="pic_scan_menupoint" href="pic_scan.cgi">Bilder Update</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a id="log_menupoint" href="error_log.cgi">Error-Log</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="stats_menupoint" href="/webstat">Statistik</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
</TMPL_IF>
|
||||
|
||||
<li class="login" >Willkommen, <TMPL_VAR user>!</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--
|
||||
</td><td>
|
||||
-->
|
||||
<div style="height:3em"></div>
|
||||
<div id="content">
|
||||
|
||||
24
website/agenda/planung/templates/.old/select_studio.html
Normal file
24
website/agenda/planung/templates/.old/select_studio.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<script type="text/javascript">
|
||||
function set_studio(id){
|
||||
var url=window.location.href;
|
||||
url=url.replace(/[\?\&]+studio_id=[0-9]+/g,'');
|
||||
if (url.indexOf('?')==-1)url+='?';
|
||||
url+='&studio_id='+id;
|
||||
url=url.replace(/\&\&+/g,'&');
|
||||
url=url.replace(/\?\&+/g,'?');
|
||||
//$('#select_studio').attr('href',url);
|
||||
//alert(url);
|
||||
load(url);
|
||||
}
|
||||
|
||||
</script>
|
||||
<div style="text-align:right">
|
||||
<select name="studio_id" onchange="set_studio($(this).val())">
|
||||
<option value="-1">Studio</option>
|
||||
<TMPL_LOOP studios>
|
||||
<option value="<TMPL_VAR id>"<TMPL_VAR selected>><TMPL_VAR name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
<TMPL_VAR user> <a href="<TMPL_VAR logout_url>?action=logout">logout</a>
|
||||
</div>
|
||||
|
||||
25
website/agenda/planung/templates/ajax_header.html
Normal file
25
website/agenda/planung/templates/ajax_header.html
Normal file
@@ -0,0 +1,25 @@
|
||||
Content-Type: text/html; charset=UTF-8;
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Radio: Admin</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="javascript" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<TMPL_IF arefresh_time><meta http-equiv="refresh" content="<TMPL_VAR refresh_time>;url=<TMPL_VAR refresh_url escape=url>"></TMPL_IF>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<TMPL_IF action_result>
|
||||
<br/> <br/> <br/>
|
||||
<div class="ok head"><TMPL_VAR action_result></div>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF error>
|
||||
<br/> <br/> <br/>
|
||||
<div class="error head"><TMPL_VAR error></div>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF subheader>
|
||||
<div><TMPL_VAR subheader></div>
|
||||
</TMPL_IF>
|
||||
|
||||
65
website/agenda/planung/templates/assign_series.html
Normal file
65
website/agenda/planung/templates/assign_series.html
Normal file
@@ -0,0 +1,65 @@
|
||||
<TMPL_IF .allow.scan_series_events>
|
||||
|
||||
<script type="text/javascript">
|
||||
<TMPL_IF .getBack>
|
||||
$(document).ready(
|
||||
function(){
|
||||
getBack()
|
||||
}
|
||||
);
|
||||
</TMPL_IF>
|
||||
|
||||
function assign_series(project_id, studio_id, series_id){
|
||||
if (project_id=='')return false;
|
||||
if (studio_id=='')return false;
|
||||
if (series_id=='')return false;
|
||||
|
||||
$('#assignments_form input[name="series_id"]').val(series_id);
|
||||
//console.log(project_id+" "+studio_id+" "+series_id);
|
||||
|
||||
var url="assign_series.cgi?project_id="+project_id+'&studio_id='+studio_id+'&series_id='+series_id+'&action=assign_series';
|
||||
//console.log(url);
|
||||
$('#assignments_form').submit();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#content{
|
||||
height:100px;
|
||||
overflow:none;
|
||||
}
|
||||
</style>
|
||||
|
||||
assign series to project <b><TMPL_VAR project_name></b> and studio <b><TMPL_VAR studio_name></b>
|
||||
|
||||
<!-- view series -->
|
||||
<div id="view_<TMPL_VAR .series_id>" class="view" style="clear:both">
|
||||
<div class="buttons">
|
||||
|
||||
<div style="float:left">Series</div>
|
||||
<select style="float:left;max-width:600px;" id="series_id">
|
||||
<option value="">--select--</option>
|
||||
<TMPL_LOOP series>
|
||||
<option value="<TMPL_VAR series_id>"><b><TMPL_VAR series_name> - <TMPL_VAR title></b> [<TMPL_VAR project_name> - <TMPL_VAR studio_name>]
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
|
||||
<form action="assign_series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>" method="post" id="assignments_form">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="action" value="assign_series">
|
||||
<button target="_blank"
|
||||
onclick="assign_series('<TMPL_VAR .project_id>', '<TMPL_VAR .studio_id>', $('#series_id').val());return false;"
|
||||
style="float:left"
|
||||
>assign</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</TMPL_IF>
|
||||
180
website/agenda/planung/templates/assignments.html
Normal file
180
website/agenda/planung/templates/assignments.html
Normal file
@@ -0,0 +1,180 @@
|
||||
<TMPL_IF .allow.scan_series_events>
|
||||
|
||||
<link href="css/jquery-ui-timepicker.css" type="text/css" rel="stylesheet" />
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
<script src="js/jquery.autosize.min.js" type="text/javascript"></script>
|
||||
|
||||
<link href="css/theme.default.css" rel="stylesheet">
|
||||
<script src="js/jquery.tablesorter.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.widgets.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.scroller.js"></script>
|
||||
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
<script>
|
||||
var event_id='<TMPL_VAR event_id>';
|
||||
<TMPL_IF .getBack>
|
||||
$(document).ready(
|
||||
function(){
|
||||
getBack()
|
||||
}
|
||||
);
|
||||
</TMPL_IF>
|
||||
|
||||
$(document).ready(
|
||||
function(){
|
||||
$('table#assignment_table').tablesorter({
|
||||
widgets: ["filter"],
|
||||
usNumberFormat : false
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
var event_ids=[];
|
||||
|
||||
function assign_series_events(project_id,studio_id,series_id){
|
||||
if (project_id=='')return false;
|
||||
if (studio_id=='')return false;
|
||||
if (series_id=='')return false;
|
||||
|
||||
$('#assignments_form input[name="series_id"]').val(series_id);
|
||||
|
||||
event_ids=[];
|
||||
$('input[type=checkbox]:checked').each(
|
||||
function(){
|
||||
event_ids.push($(this).val())
|
||||
}
|
||||
);
|
||||
var event_id=event_ids.join(',');
|
||||
$('#assignments_form input[name="event_ids"]').val(event_id);
|
||||
|
||||
var url="assignments.cgi?project_id="+project_id+'&studio_id='+studio_id+'&series_id='+series_id+'&event_ids='+event_id+'&action=assign_events';
|
||||
console.log(url);
|
||||
$('#assignments_form').submit();
|
||||
return false;
|
||||
}
|
||||
|
||||
function clear_selection(){
|
||||
$('#tabs-assignments input[type=checkbox]:checked').prop('checked', false);
|
||||
}
|
||||
|
||||
selected=0;
|
||||
function select_all(){
|
||||
clear_selection();
|
||||
selected=0;
|
||||
$('#tabs-assignments input[type=checkbox]').each(
|
||||
function(){
|
||||
if ( $(this).parent().parent().css('display')=='none') return;
|
||||
$(this).prop('checked', true);
|
||||
selected++;
|
||||
}
|
||||
);
|
||||
console.log(selected+" selected")
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body #content {
|
||||
max-width:1920px;
|
||||
}
|
||||
#content div.show_schedule{
|
||||
height:100%;
|
||||
overflow:none;
|
||||
}
|
||||
|
||||
#content div.show_schedule table{
|
||||
width:100%;
|
||||
}
|
||||
|
||||
#editor div p a img {
|
||||
float:right;
|
||||
}
|
||||
</style>
|
||||
|
||||
found <TMPL_VAR sum_events> unassigned events for project <b><TMPL_VAR project_name></b> and studio <b><TMPL_VAR studio_name></b>
|
||||
|
||||
<!-- view series -->
|
||||
<div id="view_<TMPL_VAR .series_id>" class="view" style="clear:both">
|
||||
<div class="buttons">
|
||||
<button target="_blank"
|
||||
onclick="select_all()"
|
||||
style="float:left"
|
||||
>select all</button>
|
||||
|
||||
<button target="_blank"
|
||||
onclick="clear_selection()"
|
||||
style="float:left"
|
||||
>clear</button>
|
||||
|
||||
<div style="float:left">Series</div>
|
||||
<select style="float:left;max-width:600px;" id="series_id">
|
||||
<option value="">--select--</option>
|
||||
<TMPL_LOOP series>
|
||||
<option value="<TMPL_VAR series_id>"><b><TMPL_VAR series_name> - <TMPL_VAR title></b> [<TMPL_VAR project_name> - <TMPL_VAR studio_name>]
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
<form action="assignments.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>" method="post" id="assignments_form">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="event_ids" value="<TMPL_VAR .event_id>">
|
||||
<input type="hidden" name="action" value="assign_events">
|
||||
<button target="_blank"
|
||||
onclick="assign_series_events('<TMPL_VAR .project_id>', '<TMPL_VAR .studio_id>', $('#series_id').val());return false;"
|
||||
style="float:left"
|
||||
>assign</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="tabs" style="clear:both">
|
||||
|
||||
<!-- schedule -->
|
||||
<div id="tabs-assignments">
|
||||
|
||||
<!-- show schedule -->
|
||||
<div id="show_schedule_<TMPL_VAR series_id>" class="show_schedule">
|
||||
<table id="assignment_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>assign</th>
|
||||
<!--<th>id</th>-->
|
||||
<th>program</th>
|
||||
<th>project</th>
|
||||
<th>location</th>
|
||||
<th>weekday</th>
|
||||
<th>start</th>
|
||||
<th>series_name</th>
|
||||
<th>title</th>
|
||||
<th>episode</th>
|
||||
<th>rerun</th>
|
||||
<th>preview</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<TMPL_LOOP unassigned_events>
|
||||
<tr>
|
||||
<td><input class="event_id" type="checkbox" value="<TMPL_VAR id>" title="<TMPL_VAR id>"></td>
|
||||
<!--<td><TMPL_VAR id></td>-->
|
||||
<td><TMPL_VAR program></td>
|
||||
<td><TMPL_VAR project></td>
|
||||
<td><TMPL_VAR location></td>
|
||||
<td><TMPL_VAR weekday></td>
|
||||
<td><TMPL_VAR start></td>
|
||||
<td><TMPL_VAR series_name></td>
|
||||
<td><TMPL_VAR title></td>
|
||||
<td><TMPL_VAR episode></td>
|
||||
<td><TMPL_VAR rerun></td>
|
||||
<td><a href="/programm/sendung/<TMPL_VAR id>.html" target="_blank"> <button >preview</button></a>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</TMPL_IF>
|
||||
7
website/agenda/planung/templates/autotext.json
Normal file
7
website/agenda/planung/templates/autotext.json
Normal file
@@ -0,0 +1,7 @@
|
||||
<TMPL_IF use_client_cache>Cache-Control: max-age=3600, must-revalidate
|
||||
</TMPL_IF>Content-type:application/json; charset=UTF-8;
|
||||
|
||||
[
|
||||
<TMPL_LOOP name=results>{"id":"<TMPL_VAR name>", "label":"<TMPL_VAR name>", "value":"<TMPL_VAR name>"} <TMPL_UNLESS last>,</TMPL_UNLESS>
|
||||
</TMPL_LOOP>
|
||||
]
|
||||
15
website/agenda/planung/templates/calendar.html
Normal file
15
website/agenda/planung/templates/calendar.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<div style="position:absolute;top:3em">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<th class="first">
|
||||
<a href="calendar.cgi?studio_id=<TMPL_VAR studio_id>&date=<TMPL_VAR previous_month>" >«</a>
|
||||
</th>
|
||||
<th colspan="6" align="center">
|
||||
<TMPL_VAR start_month_name> <TMPL_VAR start_year>
|
||||
</th>
|
||||
<th class="last">
|
||||
<a href="calendar.cgi?studio_id=<TMPL_VAR studio_id>&date=<TMPL_VAR next_month>" >»</a>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
21
website/agenda/planung/templates/change_password.html
Normal file
21
website/agenda/planung/templates/change_password.html
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
<TMPL_IF errors>
|
||||
<div style="position:relative;top:-3em">
|
||||
<TMPL_LOOP errors>
|
||||
<div class="error head"><TMPL_VAR error></div>
|
||||
</TMPL_LOOP>
|
||||
</div>
|
||||
<TMPL_ELSE>
|
||||
<div style="position:relative;">
|
||||
<div class="ok head">password successfully changed</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(
|
||||
function(){
|
||||
getBack();
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
</TMPL_IF>
|
||||
|
||||
89
website/agenda/planung/templates/comments.html
Normal file
89
website/agenda/planung/templates/comments.html
Normal file
@@ -0,0 +1,89 @@
|
||||
<TMPL_IF .allow.read_comment>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title><TMPL_VAR .doc.title></title>
|
||||
<link type="text/css" href="css/comment.css" rel="stylesheet"/>
|
||||
<!--
|
||||
<link href="css/jquery-ui-timepicker.css" type="text/css" rel="stylesheet" />
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
|
||||
<script src="js/series.js" type="text/javascript"></script>
|
||||
<script src="js/edit_event.js" type="text/javascript"></script>
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
-->
|
||||
<script src="js/jquery.autosize.min.js" type="text/javascript"></script>
|
||||
<script src="js/comment.js" type="text/javascript"></script>
|
||||
<script src="js/page_leave_handler.js" type="text/javascript"></script>
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
var event_id='<TMPL_VAR event_id>';
|
||||
var selectImageId='';
|
||||
<TMPL_IF .event_edited>
|
||||
$(document).ready(
|
||||
function(){
|
||||
if ($('div.error').length>0) return;
|
||||
if(comeFromCalendar()) getBack();
|
||||
}
|
||||
);
|
||||
</TMPL_IF>
|
||||
</script>
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="comments">
|
||||
<select id="selectCommentsByAge" onchange="showCommentsByAge($(this).val())">
|
||||
<option value="">wählen</option>
|
||||
<option value="1">Stunde </option>
|
||||
<option value="6">6 Stunden</option>
|
||||
<option value="24">24 Stunden</option>
|
||||
<option value="168">Woche</option>
|
||||
<option value="720">Monat</option>
|
||||
<option value="2160">3 Monate</option>
|
||||
<option value="4360">6 Monate</option>
|
||||
<option value="999999999">alle</option>
|
||||
</select>
|
||||
|
||||
<div style="text-align:right">
|
||||
<form action="comment.cgi">
|
||||
<input name="search" value="<TMPL_VAR search escape=0>" class="field"/>
|
||||
<input type="submit" value="suchen" class="button"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="print_header">
|
||||
<TMPL_IF comment_count><TMPL_VAR comment_count> <TMPL_VAR .loc.label_comments> in</TMPL_IF>
|
||||
<TMPL_IF event_count><TMPL_VAR event_count> <TMPL_VAR .loc.label_events></TMPL_IF>
|
||||
</div>
|
||||
<TMPL_IF is_empty><TMPL_VAR .loc.label_no_comments_found>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_LOOP events>
|
||||
<div>
|
||||
<table class="event_comments"><tbody><tr>
|
||||
<td class="event_show_comments" >
|
||||
<a href="#event_<TMPL_VAR id>_comments" onclick="showEventComments('<TMPL_VAR id>');return false;" title="zeige Kommentare">
|
||||
<TMPL_VAR comment_count> <TMPL_VAR .loc.label_comments>
|
||||
</a>
|
||||
</td>
|
||||
<td class="event_title">
|
||||
<a href="<TMPL_VAR cache_base_url>/<TMPL_VAR .controllers.event escape=url>/<TMPL_VAR id>.html#comments" title="zeige Sendung">
|
||||
<TMPL_VAR series_name> - <TMPL_VAR title>
|
||||
</a>
|
||||
</td>
|
||||
<td class="event_start">
|
||||
<TMPL_VAR start>
|
||||
</td>
|
||||
</tr></tbody></table>
|
||||
</div>
|
||||
<div class="event_excerpt"><TMPL_VAR excerpt></div>
|
||||
<div class="event" id="event_<TMPL_VAR id>_comments" style="line-height:100%;display:none;"> </div>
|
||||
</TMPL_LOOP>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
</body>
|
||||
<TMPL_ELSE>
|
||||
missing permission to read comment
|
||||
</TMPL_IF>
|
||||
65
website/agenda/planung/templates/create_events.html
Normal file
65
website/agenda/planung/templates/create_events.html
Normal file
@@ -0,0 +1,65 @@
|
||||
<TMPL_IF .allow.scan_series_events>
|
||||
|
||||
<script type="text/javascript">
|
||||
<TMPL_IF .getBack>
|
||||
$(document).ready(
|
||||
function(){
|
||||
getBack()
|
||||
}
|
||||
);
|
||||
</TMPL_IF>
|
||||
|
||||
function assign_series(project_id, studio_id, series_id){
|
||||
if (project_id=='')return false;
|
||||
if (studio_id=='')return false;
|
||||
if (series_id=='')return false;
|
||||
|
||||
$('#assignments_form input[name="series_id"]').val(series_id);
|
||||
//console.log(project_id+" "+studio_id+" "+series_id);
|
||||
|
||||
var url="assign_series.cgi?project_id="+project_id+'&studio_id='+studio_id+'&series_id='+series_id+'&action=assign_series';
|
||||
//console.log(url);
|
||||
$('#assignments_form').submit();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#content{
|
||||
height:100px;
|
||||
overflow:none;
|
||||
}
|
||||
</style>
|
||||
|
||||
assign series to project <b><TMPL_VAR project_name></b> and studio <b><TMPL_VAR studio_name></b>
|
||||
|
||||
<!-- view series -->
|
||||
<div id="view_<TMPL_VAR .series_id>" class="view" style="clear:both">
|
||||
<div class="buttons">
|
||||
|
||||
<div style="float:left">Series</div>
|
||||
<select style="float:left;max-width:600px;" id="series_id">
|
||||
<option value="">--select--</option>
|
||||
<TMPL_LOOP series>
|
||||
<option value="<TMPL_VAR series_id>"><b><TMPL_VAR series_name> - <TMPL_VAR title></b> [<TMPL_VAR project_name> - <TMPL_VAR studio_name>]
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
|
||||
<form action="assign_series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>" method="post" id="assignments_form">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="action" value="assign_series">
|
||||
<button target="_blank"
|
||||
onclick="assign_series('<TMPL_VAR .project_id>', '<TMPL_VAR .studio_id>', $('#series_id').val());return false;"
|
||||
style="float:left"
|
||||
>assign</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</TMPL_IF>
|
||||
64
website/agenda/planung/templates/default.html
Normal file
64
website/agenda/planung/templates/default.html
Normal file
@@ -0,0 +1,64 @@
|
||||
<TMPL_INCLUDE header.html>
|
||||
|
||||
<center>
|
||||
<div id="calcms_admin_menu">
|
||||
|
||||
<div><a href="/"><img width="20px" height="20px" src="<TMPL_VAR static_files_url>/image/logo.jpg" alt="Hauptseite"/></a></div>
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<div> <a id="menu_calendar" href="calendar.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR studio_id>"><TMPL_VAR .loc.calendar></a> </div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_series>
|
||||
<div> <a href="series.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><TMPL_VAR .loc.series></a> </div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_user>
|
||||
<div> <a href="users.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><TMPL_VAR .loc.users></a> </div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_role>
|
||||
<div> <a href="roles.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><TMPL_VAR .loc.roles></a> </div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_studio>
|
||||
<div> <a href="studios.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><TMPL_VAR .loc.studios></a> </div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_studio_timeslot_schedule>
|
||||
<div> <a href="studio_timeslots.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><TMPL_VAR .loc.timeslots></a> </div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_project>
|
||||
<div> <a href="projects.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><TMPL_VAR .loc.projects></a> </div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.scan_series_events>
|
||||
<div> <a href="assignments.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><TMPL_VAR .loc.import></a> </div>
|
||||
</TMPL_IF>
|
||||
|
||||
<div> <a href="user_settings.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><TMPL_VAR .loc.profile></a> </div>
|
||||
|
||||
<TMPL_IF .allow.is_admin>
|
||||
<div> <a href="error_log.cgi"><TMPL_VAR .loc.errors></a> </div>
|
||||
</TMPL_IF>
|
||||
|
||||
<div> <a href="help.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><TMPL_VAR .loc.help></a> </div>
|
||||
|
||||
<select id="studio_id" name="studio_id" onchange="set_studio($(this).val())">
|
||||
<TMPL_LOOP .presets.studios>
|
||||
<option value="<TMPL_VAR id>" <TMPL_IF selected> selected="selected"</TMPL_IF> ><TMPL_VAR .loc.studio> <TMPL_VAR name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
|
||||
<select id="project_id" name="project_id" onchange="set_project($(this).val())">
|
||||
<TMPL_LOOP .presets.projects>
|
||||
<option value="<TMPL_VAR project_id>" <TMPL_IF selected> selected="selected"</TMPL_IF> ><TMPL_VAR .loc.project> <TMPL_VAR name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
|
||||
<div><a id="logout" href="<TMPL_VAR .presets.logout_url>?action=logout" expires="<TMPL_VAR .expires>"><TMPL_VAR .loc.logout></a> <TMPL_VAR .presets.user></div>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
53
website/agenda/planung/templates/edit_comment.html
Normal file
53
website/agenda/planung/templates/edit_comment.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<TMPL_IF .allow.read_comment>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<TMPL_IF is_empty><TMPL_VAR .loc.label_no_comments_found>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_LOOP events>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th width="100"><TMPL_VAR .loc.label_depth></th>
|
||||
<th width="120"><TMPL_VAR .loc.label_date></th>
|
||||
<th width="40"><TMPL_VAR .loc.label_time></th>
|
||||
<th width="80"><TMPL_VAR .loc.label_author></th>
|
||||
<th width="500"><TMPL_VAR .loc.label_content></th>
|
||||
</tr>
|
||||
<TMPL_LOOP comments>
|
||||
<tr id="<TMPL_VAR id>" class="<TMPL_VAR lock_status>" style="display:table-row;">
|
||||
<td class="level<TMPL_VAR level>"><img src="image/comment.png" class="level<TMPL_VAR level>"><a name="event_comments_<TMPL_VAR id>" /></td>
|
||||
<td class="date"><TMPL_VAR start_date_name></td>
|
||||
<td class="time"><TMPL_VAR start_time_name></td>
|
||||
<td class="author"><TMPL_VAR author escape=0></td>
|
||||
<td class="content <TMPL_VAR news_status>"><textarea><TMPL_VAR content escape=0></textarea></td>
|
||||
</tr>
|
||||
<tr style="border-bottom:1px gray solid;">
|
||||
<td />
|
||||
<td colspan="2" class="host"><TMPL_VAR ip></td>
|
||||
<td class="author"><TMPL_IF email><a href="mailto:<TMPL_VAR email>"><TMPL_VAR email></a></TMPL_IF></td>
|
||||
<td>
|
||||
<TMPL_IF .allow.update_comment_status_read>
|
||||
<button
|
||||
onclick="setCommentStatusRead('<TMPL_VAR id>','<TMPL_VAR event_id>','<TMPL_IF received>unread</TMPL_IF><TMPL_IF unread>received</TMPL_IF>');return false;">
|
||||
<TMPL_IF received><TMPL_VAR .loc.label_status_unread></TMPL_IF><TMPL_IF unread><TMPL_VAR .loc.label_status_read></TMPL_IF>
|
||||
</button>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF .allow.update_comment_status_lock>
|
||||
<button
|
||||
onclick="setCommentStatusLock('<TMPL_VAR id>','<TMPL_VAR event_id>','<TMPL_IF blocked>show</TMPL_IF><TMPL_IF show>blocked</TMPL_IF>');return false;">
|
||||
<TMPL_IF blocked><TMPL_VAR .loc.label_status_show></TMPL_IF><TMPL_IF show><TMPL_VAR .loc.label_status_hide></TMPL_IF>
|
||||
</button>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</tbody>
|
||||
</table>
|
||||
</TMPL_LOOP>
|
||||
</TMPL_IF>
|
||||
</body>
|
||||
</html>
|
||||
<TMPL_ELSE>
|
||||
missing permission to read comment
|
||||
</TMPL_IF>
|
||||
541
website/agenda/planung/templates/edit_event.html
Normal file
541
website/agenda/planung/templates/edit_event.html
Normal file
@@ -0,0 +1,541 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title><TMPL_VAR .doc.title></title>
|
||||
<link href="css/jquery-ui-timepicker.css" type="text/css" rel="stylesheet" />
|
||||
<link href="css/event.css" type="text/css" rel="stylesheet"/>
|
||||
<link type="text/css" href="css/comment.css" rel="stylesheet"/>
|
||||
|
||||
<!-- for edit series-->
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
<script src="js/jquery.autosize.min.js" type="text/javascript"></script>
|
||||
|
||||
<script src="js/series.js" type="text/javascript"></script>
|
||||
<script src="js/edit_event.js" type="text/javascript"></script>
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
<script src="js/comment.js" type="text/javascript"></script>
|
||||
<script src="js/page_leave_handler.js" type="text/javascript"></script>
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
var event_id='<TMPL_VAR event_id>';
|
||||
var selectImageId='';
|
||||
<TMPL_IF .event_edited>
|
||||
$(document).ready(
|
||||
function(){
|
||||
if ($('div.error').length>0) return;
|
||||
if(comeFromCalendar()) getBack();
|
||||
}
|
||||
);
|
||||
</TMPL_IF>
|
||||
$(document).ready(
|
||||
function(){
|
||||
loadComments('<TMPL_VAR .event_id>', function(){
|
||||
// initially hide comments
|
||||
$('#event_<TMPL_VAR id>_comments').hide();
|
||||
if ($('#comments table').length==0){
|
||||
// hide comment button if no comments exist
|
||||
$('#comments').hide();
|
||||
$('button#showComment').each(
|
||||
function(){
|
||||
$(this).hide();
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<TMPL_IF edit_lock>
|
||||
<div class="ok head"><TMPL_VAR loc.label_edit_lock></div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- edit -->
|
||||
<!--<aTMPL_IF .allow.update_event>-->
|
||||
<div class="editor">
|
||||
|
||||
<!-- buttons -->
|
||||
<div class="buttons">
|
||||
<TMPL_IF series_id>
|
||||
<TMPL_IF .allow.read_series>
|
||||
<button onclick="view_series_details('<TMPL_VAR series_id>','<TMPL_VAR .studio_id>','<TMPL_VAR .project_id>')" style="float:left">
|
||||
<TMPL_VAR .loc.button_edit_series>
|
||||
</button>
|
||||
</TMPL_IF>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button
|
||||
onclick="window.location='calendar.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id>&list=1'"
|
||||
style="float:left"
|
||||
><TMPL_VAR .loc.button_event_list></button>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF new_event>
|
||||
<TMPL_IF .allow.delete_schedule>
|
||||
<button
|
||||
onclick="load('series.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR studio_id>&series_id=<TMPL_VAR series_id>&start=<TMPL_VAR start escape=url>&exclude=1&show_hint_to_add_schedule=1#tabs-schedule')"><TMPL_VAR .loc.button_delete_from_schedule></button>
|
||||
</TMPL_IF>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_IF .allow.assign_series_events>
|
||||
<button onclick="selectChangeSeries('changeSeriesId');return false;"><TMPL_VAR loc.button_assign_series></button>
|
||||
</TMPL_IF>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.update_event>
|
||||
<!--
|
||||
<button onclick="$('#copy_from_source').toggle();$('#change_series').hide();return false;"><TMPL_VAR .loc.button_copy_existing_event></button>
|
||||
-->
|
||||
<button onclick="selectRerun('rerunEventId', <TMPL_VAR start_date>)"><TMPL_VAR .loc.button_rerun></button>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_UNLESS new_event>
|
||||
<TMPL_IF .allow.upload_audio_recordings>
|
||||
<form style="float:right" action="audio_recordings.cgi">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="event_id" value="<TMPL_VAR .event_id>">
|
||||
<input type="hidden" name="action" value="upload">
|
||||
<button type="submit"><TMPL_VAR .loc.button_upload></button>
|
||||
</form>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.create_download>
|
||||
<form style="float:right">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="event_id" value="<TMPL_VAR .event_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="action" value="download">
|
||||
<button type="submit"><TMPL_VAR .loc.button_download></button>
|
||||
</form>
|
||||
</TMPL_IF>
|
||||
</TMPL_UNLESS>
|
||||
|
||||
<!--
|
||||
<TMPL_IF .allow.update_event>
|
||||
<a class="button"
|
||||
href="mailto:<TMPL_VAR .series_users_email_list>?cc=programm@radiopiloten.de&reply-to=programm@radiopiloten.de&subject=<TMPL_VAR start> - <TMPL_VAR series_name><TMPL_IF title> - <TMPL_VAR title></TMPL_IF><TMPL_IF episode> #<TMPL_VAR episode></TMPL_IF>&body=Hallo <TMPL_VAR .series_user_names>,%0A%0Anur zur Erinnerung...%0A%0Aam <TMPL_VAR weekday_name> ist die naechste '<TMPL_VAR series_name>'-Sendung.%0A%0Ahttp:<TMPL_VAR source_base_url><TMPL_VAR cache_base_url>/<TMPL_VAR .controllers.event>/<TMPL_VAR event_id>.html%0A%0AGruss, <TMPL_VAR user>"
|
||||
><button><TMPL_VAR .loc.button_reminder></button></a>
|
||||
</TMPL_IF>
|
||||
-->
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button target="_blank"
|
||||
onclick="load('event_history.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR studio_id>&series_id=<TMPL_VAR series_id>&event_id=<TMPL_VAR event_id>');"
|
||||
><TMPL_VAR .loc.button_show_changes></button>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button target="_blank"
|
||||
onclick="window.open('/programm/sendung/<TMPL_VAR event_id>.html', '_blank');"
|
||||
><TMPL_VAR .loc.button_show_event></button>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_comment>
|
||||
<button id="showComment"
|
||||
onclick="showEventComments('<TMPL_VAR id>')"
|
||||
><TMPL_VAR .loc.label_comments></button>
|
||||
</TMPL_IF>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- header -->
|
||||
<!--
|
||||
<TMPL_IF series_id>
|
||||
<div class="header">
|
||||
<TMPL_VAR series_name> <TMPL_IF title>- <TMPL_VAR title></TMPL_IF>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
-->
|
||||
|
||||
<div>
|
||||
|
||||
<!-- import rerun from old event of series or any event of any project -->
|
||||
<TMPL_IF .allow.update_event>
|
||||
<div id="selectRerun" style="display:none;" class="panel">
|
||||
<TMPL_VAR .loc.label_rerun>
|
||||
|
||||
<div onclick="selectOldEventFromSeries('rerunEventId','<TMPL_VAR start_date>'); updateCheckBox($(this).find('input:radio'),true);">
|
||||
<input type="radio" name="group" class="default">
|
||||
<TMPL_VAR .loc.label_rerun_select_old>
|
||||
</div>
|
||||
|
||||
<div onclick="selectOtherEvent('rerunEventId'); updateCheckBox($(this).find('input:radio'),true);">
|
||||
<input type="radio" name="group">
|
||||
<TMPL_VAR .loc.label_rerun_select_other>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button onclick="hideSelectRerun('rerunEventId')"><TMPL_VAR .loc.button_cancel></button>
|
||||
</div>
|
||||
|
||||
<input id="rerunEventId" value="-1" style="display:none" onchange="copyFromEvent('rerunEventId')">
|
||||
</div>
|
||||
|
||||
<div id="import_rerun_header" style="display:none;">
|
||||
<b><TMPL_VAR weekday_short_name>, <TMPL_VAR start_date_name>, <TMPL_VAR start_time_name></b>,
|
||||
<TMPL_VAR .loc.label_overwrite_event>
|
||||
<div id="import_rerun" class="active" style="display:none;"></div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- move to other series -->
|
||||
<TMPL_IF .allow.assign_series_events>
|
||||
<div id="selectChangeSeries" class="active" style="display:none" class="panel">
|
||||
<TMPL_VAR .loc.button_assign_series>
|
||||
<div id="changeSeriesContainer"> </div>
|
||||
<input id="changeSeriesId" value="-1" style="display:none">
|
||||
<button onclick="hideChangeSeries()"><TMPL_VAR .loc.button_cancel></button>
|
||||
<button onclick="changeSeries()"><TMPL_VAR .loc.button_assign></button>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
|
||||
<!-- edit event -->
|
||||
<div id="edit_event" style="padding:0">
|
||||
<form id="event_<TMPL_VAR event_id>" method="post" action="event.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id><TMPL_UNLESS new_event>&event_id=<TMPL_VAR .event_id></TMPL_UNLESS>" >
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<TMPL_UNLESS new_event>
|
||||
<input type="hidden" name="event_id" value="<TMPL_VAR .event_id>">
|
||||
</TMPL_UNLESS>
|
||||
|
||||
<!-- header buttons -->
|
||||
<div class="buttons" style="text-align:center;clear:both">
|
||||
<TMPL_IF show_new_event_from_schedule>
|
||||
<TMPL_IF .allow.create_event_from_schedule>
|
||||
<button type="submit" name="action" value="create_event_from_schedule"
|
||||
onclick="leavePage();return true"
|
||||
><TMPL_VAR .loc.button_create></button>
|
||||
</TMPL_IF>
|
||||
<TMPL_ELSIF show_new_event>
|
||||
<TMPL_IF .allow.create_event>
|
||||
<button type="submit" name="action" value="create_event"
|
||||
onclick="leavePage();return true"
|
||||
><TMPL_VAR .loc.button_create></button>
|
||||
</TMPL_IF>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_IF .allow.update_event>
|
||||
<button type="submit" name="action" value="save"
|
||||
onclick="leavePage();return true"
|
||||
><TMPL_VAR .loc.button_save></button>
|
||||
</TMPL_IF>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF .allow.delete_event>
|
||||
<TMPL_UNLESS new_event>
|
||||
<button type="submit" name="action" value="delete"
|
||||
onclick="commitForm('event_<TMPL_VAR event_id>','delete','delete event');return false;"
|
||||
><TMPL_VAR .loc.button_delete></button>
|
||||
</TMPL_UNLESS>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
|
||||
<!-- download output -->
|
||||
<TMPL_IF download>
|
||||
<textarea type="hidden" name="event_id" ><TMPL_VAR download></textarea>
|
||||
</TMPL_IF>
|
||||
|
||||
|
||||
<!-- edit event time -->
|
||||
<!-- <TMPL_UNLESS new_event>style="display:none"</TMPL_UNLESS> -->
|
||||
<table id="edit_time_<TMPL_VAR event_id>" class="edit_event" >
|
||||
<tr>
|
||||
<td class="label"><strong>
|
||||
<TMPL_IF has_single_events><TMPL_VAR .loc.single_event><TMPL_ELSE><TMPL_VAR series_name></TMPL_IF>
|
||||
</strong>
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF .allow.update_event_field_title>
|
||||
<input name="title" value="<TMPL_VAR title>" placeholder="<TMPL_VAR .loc.label_title>">
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR title>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.update_event_field_title_extension>
|
||||
<input name="user_title" value="<TMPL_VAR user_title>" id="user_title_<TMPL_VAR event_id>" placeholder="<TMPL_VAR .loc.label_title_extension>">
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR user_title>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_UNLESS has_single_events>
|
||||
<TMPL_IF .allow.update_event_field_episode>
|
||||
<TMPL_VAR .loc.label_episode> <input name="episode" value="<TMPL_VAR episode>" class="episode" placeholder="episode">
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR .loc.label_episode>: <TMPL_VAR episode>
|
||||
</TMPL_IF>
|
||||
</TMPL_UNLESS>
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"></td>
|
||||
<td>
|
||||
<TMPL_VAR start> - <TMPL_VAR key>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<TMPL_IF .allow.update_event_time>
|
||||
<!-- event time edit -->
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_when></td>
|
||||
<td>
|
||||
<TMPL_VAR .loc.label_start>
|
||||
<span id="start_date_weekday"></span>
|
||||
<input id="start_date" class="date" name="start_date" value="<TMPL_VAR start>" onchange="onDateModified()" placeholder="<TMPL_VAR .loc.label_when>">
|
||||
|
||||
<TMPL_VAR .loc.label_duration>
|
||||
<select id="duration" name="duration" onchange="onDateModified()"> minutes
|
||||
<TMPL_LOOP durations>
|
||||
<option value="<TMPL_VAR value>" <TMPL_IF selected>selected="selected"</TMPL_IF>><TMPL_VAR name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
|
||||
<TMPL_VAR .loc.label_end>
|
||||
<span id="end_date" class="date" name="end_date" ><TMPL_VAR end></span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<!-- event time read -->
|
||||
<TMPL_IF .allow.read_event>
|
||||
<TMPL_UNLESS new_event></TMPL_UNLESS>
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_when></td>
|
||||
<td><TMPL_VAR weekday_short_name>, <TMPL_VAR start_date_name>, <TMPL_VAR start_time_name> - <TMPL_VAR end_time>
|
||||
<input type="hidden" id="start_date" name="start_date" value="<TMPL_VAR start>" >
|
||||
<TMPL_LOOP durations><TMPL_IF selected><input type="hidden" name="duration" value="<TMPL_VAR value>" ></TMPL_IF></TMPL_LOOP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</TMPL_IF>
|
||||
|
||||
</TMPL_IF>
|
||||
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_status></td>
|
||||
<td>
|
||||
<TMPL_IF .allow.update_event_status_live>
|
||||
<input type="checkbox" name="live" <TMPL_IF live>checked="checked" value="1"<TMPL_ELSE>value="0"</TMPL_IF> > <TMPL_VAR .loc.label_live>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_IF live><TMPL_VAR .loc.label_live></TMPL_IF>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.update_event_status_published>
|
||||
<input type="checkbox" name="published" <TMPL_IF published>checked="checked" value="1"<TMPL_ELSE>value="0"</TMPL_IF> > <TMPL_VAR .loc.label_published>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_IF published><TMPL_VAR .loc.label_published></TMPL_IF>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.update_event_status_playout>
|
||||
<input type="checkbox" name="playout" <TMPL_IF playout>checked="checked" value="1"<TMPL_ELSE>value="0"</TMPL_IF> > <TMPL_VAR .loc.label_playout>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_IF playout><TMPL_VAR .loc.label_playout></TMPL_IF>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.update_event_status_archived>
|
||||
<input type="checkbox" name="archived" <TMPL_IF archived>checked="checked" value="1"<TMPL_ELSE>value="0"</TMPL_IF> > <TMPL_VAR .loc.label_archived>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_IF archived><TMPL_VAR .loc.label_archived></TMPL_IF>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.update_event_status_rerun>
|
||||
<input type="checkbox" name="rerun" <TMPL_IF rerun>checked="checked" value="1"<TMPL_ELSE>value="0"</TMPL_IF> > <TMPL_VAR .loc.label_rerun>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_IF rerun><TMPL_VAR .loc.label_rerun></TMPL_IF>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.update_event_status_disable_event_sync>
|
||||
<input type="hidden" name="disable_event_sync" value="1">
|
||||
<!--
|
||||
<input type="checkbox" name="disable_event_sync" <TMPL_IF disable_event_sync>checked="checked" value="1"<TMPL_ELSE>value="0"</TMPL_IF> > <TMPL_VAR .loc.label_no_sync>
|
||||
-->
|
||||
<TMPL_ELSE>
|
||||
<!--<TMPL_IF disable_event_sync><TMPL_VAR .loc.no_sync></TMPL_IF>-->
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<!-- show event content -->
|
||||
<!--
|
||||
<TMPL_IF read_event>
|
||||
<table id="show_content_<TMPL_VAR event_id>" <TMPL_IF new_event>style="display:none"</TMPL_IF> >
|
||||
<tr>
|
||||
<td class="label">excerpt</td>
|
||||
<td><TMPL_VAR excerpt><TMPL_VAR user_excerpt></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label">description</td>
|
||||
<td>
|
||||
<img src="<TMPL_VAR image>" style="float:right;padding-left:1em">
|
||||
<div><TMPL_VAR topic</div>
|
||||
<div><TMPL_VAR html_content escape=0></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</TMPL_IF>
|
||||
-->
|
||||
|
||||
<!-- <TMPL_UNLESS new_event>style="display:none"</TMPL_UNLESS> -->
|
||||
<!-- edit event content -->
|
||||
<table id="edit_content_<TMPL_VAR event_id>" class="edit_event" >
|
||||
<tr id="excerpt">
|
||||
<td class="label"><TMPL_VAR .loc.label_excerpt></td>
|
||||
<td>
|
||||
<div id="excerpt_too_long" class="error" style="display:none"><TMPL_VAR .loc.label_excerpt_too_long></div>
|
||||
<TMPL_IF .allow.update_event_field_excerpt>
|
||||
<textarea name="excerpt" class="excerpt" maxlength="251" placeholder="<TMPL_VAR .loc.label_excerpt>"><TMPL_VAR excerpt></textarea>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR excerpt>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="user_excerpt">
|
||||
<td class="label"><TMPL_VAR .loc.label_excerpt_extension></td>
|
||||
<td>
|
||||
<div id="excerpt_extension_too_long" class="error" style="display:none"><TMPL_VAR .loc.label_excerpt_extension_too_long></div>
|
||||
<TMPL_IF .allow.update_event_field_excerpt_extension>
|
||||
<textarea class="excerpt" name="user_excerpt" maxlength="251" placeholder="<TMPL_VAR .loc.label_excerpt_extension>"><TMPL_VAR user_excerpt></textarea>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR user_excerpt>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="topic_<TMPL_VAR event_id>">
|
||||
<td class="label"><TMPL_VAR .loc.label_topics></td>
|
||||
<td class="edit_topic">
|
||||
<TMPL_IF .allow.update_event_field_topic>
|
||||
<textarea name="topic" placeholder="<TMPL_VAR .loc.label_topics>"><TMPL_VAR topic></textarea>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR html_topic escape=0>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_description></td>
|
||||
<td class="edit_content">
|
||||
<TMPL_IF .allow.update_event_field_description>
|
||||
<textarea name="content" placeholder="<TMPL_VAR .loc.label_description>"><TMPL_VAR content></textarea>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR html_content escape=0>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label">
|
||||
<TMPL_VAR .loc.label_image>
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF .allow.update_event_field_image>
|
||||
<button onclick="selectImage('<TMPL_VAR .project_id>','<TMPL_VAR .studio_id>','image_<TMPL_VAR event_id>','<TMPL_VAR series_name escape=HTML>','<TMPL_VAR image ESCAPE=url>','<TMPL_VAR series_id>');return false;"
|
||||
style="padding:0;"
|
||||
>
|
||||
<img id="imagePreview" src="<TMPL_VAR image>">
|
||||
</button>
|
||||
<input id="image_<TMPL_VAR event_id>" name="image" value="<TMPL_VAR image>" class="image" style="float:right" placeholder="<TMPL_VAR .loc.label_image>">
|
||||
<TMPL_ELSE>
|
||||
<img src="<TMPL_VAR image>">
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label">
|
||||
<TMPL_VAR .loc.label_podcast_url>
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF .allow.update_event_field_podcast_url>
|
||||
<input name="podcast_url" value="<TMPL_VAR podcast_url>" class="url" placeholder="<TMPL_VAR .loc.label_podcast_url>">
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR podcast_url>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label">
|
||||
<TMPL_VAR .loc.label_archive_url>
|
||||
</td>
|
||||
<td>
|
||||
<TMPL_IF .allow.update_event_field_archive_url>
|
||||
<input name="archive_url" value="<TMPL_VAR archive_url>" class="url" placeholder="<TMPL_VAR .loc.label_archive_url>">
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR archive_url>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- buttons -->
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="buttons" style="text-align:center">
|
||||
<TMPL_IF show_new_event_from_schedule>
|
||||
<TMPL_IF .allow.create_event_from_schedule>
|
||||
<button type="submit" name="action" value="create_event_from_schedule"
|
||||
onclick="leavePage();return true"
|
||||
><TMPL_VAR .loc.button_create></button>
|
||||
</TMPL_IF>
|
||||
<TMPL_ELSIF show_new_event>
|
||||
<TMPL_IF .allow.create_event>
|
||||
<button type="submit" name="action" value="create_event"
|
||||
onclick="leavePage();return true"
|
||||
><TMPL_VAR .loc.button_create></button>
|
||||
</TMPL_IF>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_IF .allow.update_event>
|
||||
<button type="submit" name="action" value="save"
|
||||
onclick="leavePage();return true"
|
||||
><TMPL_VAR .loc.button_save></button>
|
||||
</TMPL_IF>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF .allow.delete_event>
|
||||
<TMPL_UNLESS new_event>
|
||||
<button type="submit" name="action" value="delete"
|
||||
onclick="leavePage();commitForm('event_<TMPL_VAR event_id>','delete','delete event');return false;"
|
||||
><TMPL_VAR .loc.button_delete></button>
|
||||
</TMPL_UNLESS>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<TMPL_IF .allow.read_comment>
|
||||
<div id="comments">
|
||||
<button id="showComment" onclick="showEventComments('<TMPL_VAR id>')"><TMPL_VAR .loc.label_comments></button>
|
||||
<div class="event" id="event_<TMPL_VAR id>_comments" style="line-height:100%;display:none;"> </div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
</div>
|
||||
<TMPL_IF modified_at>
|
||||
<div class="label right"><TMPL_VAR .loc.label_modified_at> <TMPL_VAR modified_at> <TMPL_VAR .loc.label_modified_by> <TMPL_VAR modified_by>.</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<div id="selectImage"></div>
|
||||
|
||||
</div>
|
||||
<!--</aTMPL_IF>-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
628
website/agenda/planung/templates/edit_series.html
Normal file
628
website/agenda/planung/templates/edit_series.html
Normal file
@@ -0,0 +1,628 @@
|
||||
<TMPL_IF .allow.read_series>
|
||||
|
||||
<link href="css/jquery-ui-timepicker.css" type="text/css" rel="stylesheet" />
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
|
||||
<script src="js/jquery.autosize.min.js" type="text/javascript"></script>
|
||||
<link href="css/theme.default.css" rel="stylesheet">
|
||||
|
||||
<script src="js/jquery.tablesorter.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.widgets.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.scroller.js"></script>
|
||||
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
var event_id='<TMPL_VAR event_id>';
|
||||
var selectImageId='';
|
||||
<TMPL_IF .getBack>
|
||||
$(document).ready(
|
||||
function(){
|
||||
getBack()
|
||||
}
|
||||
);
|
||||
</TMPL_IF>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#editor div p a img {
|
||||
float:right;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- view series -->
|
||||
<div id="view_<TMPL_VAR .series_id>" class="view" style="clear:both">
|
||||
<div class="buttons">
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button
|
||||
onclick="window.location='calendar.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id>&list=1'"
|
||||
style="float:left"
|
||||
><TMPL_VAR .loc.button_event_list></button>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button target="_blank"
|
||||
onclick="load('event_history.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR series_id>');"
|
||||
style="float:left"
|
||||
><TMPL_VAR .loc.button_show_changes></button>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.create_event>
|
||||
<form action="event.cgi">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<button type="submit" name="action" value="show_new_event"><TMPL_VAR .loc.button_create_event></button>
|
||||
</form>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr><td colspan="2">
|
||||
<div class="header">
|
||||
<TMPL_IF has_single_events>
|
||||
<TMPL_VAR .loc.single_events> <TMPL_IF title><TMPL_VAR title></TMPL_IF>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR .loc.title>
|
||||
<TMPL_IF series_name> <TMPL_VAR series_name></TMPL_IF><TMPL_IF title> - <TMPL_VAR title></TMPL_IF>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<TMPL_IF .allow.update_series_template>
|
||||
<li><a href="#tabs-template"><TMPL_VAR .loc.tab_template></a></li>
|
||||
</TMPL_IF>
|
||||
<li><a href="#tabs-schedule"><TMPL_VAR .loc.tab_schedule></a></li>
|
||||
<li><a href="#tabs-events"><TMPL_VAR .loc.tab_current_events></a></li>
|
||||
<TMPL_UNLESS has_single_events>
|
||||
<li><a href="#tabs-members"><TMPL_VAR .loc.tab_members></a></li>
|
||||
<!--
|
||||
<TMPL_IF .allow.scan_series_events>
|
||||
<li><a href="#tabs-import"><TMPL_VAR .loc.tab_import></a></li>
|
||||
</TMPL_IF>
|
||||
-->
|
||||
<TMPL_IF .allow.delete_series>
|
||||
<li><a href="#tabs-delete"><TMPL_VAR .loc.tab_delete></a></li>
|
||||
</TMPL_IF>
|
||||
</TMPL_UNLESS>
|
||||
</ul>
|
||||
|
||||
<!-- edit template-->
|
||||
<TMPL_IF .allow.update_series_template>
|
||||
<div id="tabs-template">
|
||||
<!--
|
||||
<div class="header">Template</div>
|
||||
<div class="buttons">
|
||||
<button onclick="edit_series('<TMPL_VAR .series_id>');return false;">edit</button>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<div id="edit_<TMPL_VAR .series_id>" class="editor"> <!--style="display:none;"-->
|
||||
<form method="post" action="series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id>#tabs-template">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<table>
|
||||
<!--
|
||||
<tr> <td class="label">program</td> <td><input name="program" value="<TMPL_VAR program>"></td></tr>
|
||||
-->
|
||||
<TMPL_UNLESS has_single_events>
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_series></td>
|
||||
<td><input name="series_name" value="<TMPL_VAR series_name>" placeholder="<TMPL_VAR .loc.template_series>"></td></tr>
|
||||
<TMPL_ELSE>
|
||||
<input type="hidden" name="series_name" value="_single_">
|
||||
</TMPL_UNLESS>
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_title></td>
|
||||
<td><input name="title" value="<TMPL_VAR title>" placeholder="<TMPL_VAR .loc.template_title>"></td></tr>
|
||||
<tr id="excerpt">
|
||||
<td class="label"><TMPL_VAR .loc.template_excerpt></td>
|
||||
<td>
|
||||
<div id="excerpt_too_long" class="error" style="display:none"><TMPL_VAR .loc.label_excerpt_too_long></div>
|
||||
<textarea name="excerpt" class="animated" style="width:100%;" maxlength="251" placeholder="<TMPL_VAR .loc.template_excerpt>"><TMPL_VAR excerpt></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_topic></td>
|
||||
<td><textarea name="topic" class="animated" style="width:100%;" placeholder="<TMPL_VAR .loc.template_topic>"><TMPL_VAR topic></textarea></td></tr>
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_content></td>
|
||||
<td><textarea name="content" class="animated" style="width:100%;" placeholder="<TMPL_VAR .loc.template_content>"><TMPL_VAR content></textarea></td></tr>
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_image></td>
|
||||
<td>
|
||||
<TMPL_IF .allow.read_image>
|
||||
<button onclick="selectImage('<TMPL_VAR .project_id>','<TMPL_VAR .studio_id>','image_<TMPL_VAR .series_id>','<TMPL_VAR series_name escape=HTML>','<TMPL_VAR image escape=URL>','<TMPL_VAR series_id>');return false;"
|
||||
style="padding:0;float:left"
|
||||
>
|
||||
<img id="imagePreview" src="<TMPL_VAR image>">
|
||||
</button>
|
||||
<input id="image_<TMPL_VAR .series_id>" name="image" value="<TMPL_VAR image>" class="image" placeholder="<TMPL_VAR .loc.template_image>">
|
||||
<TMPL_ELSE>
|
||||
<img src="<TMPL_VAR image>">
|
||||
</TMPL_IF>
|
||||
</td></tr>
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_duration></td>
|
||||
<td><input name="default_duration" value="<TMPL_VAR default_duration>" style="width:3em" placeholder="<TMPL_VAR .loc.template_duration>"> <TMPL_VAR .loc.minutes></td></tr>
|
||||
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_live></td>
|
||||
<td><input name="live" type="checkbox"<TMPL_IF live> value="1" checked="checked"<TMPL_ELSE> value="0"</TMPL_IF> ></td></tr>
|
||||
|
||||
<TMPL_UNLESS has_single_events>
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_count_episodes></td>
|
||||
<td><input name="count_episodes" type="checkbox"<TMPL_IF count_episodes> value="1" checked="checked"<TMPL_ELSE> value="0"</TMPL_IF> ></td></tr>
|
||||
</TMPL_UNLESS>
|
||||
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_podcast_url></td>
|
||||
<td><input name="podcast_url" style="width:100%;" value="<TMPL_VAR podcast_url>" placeholder="<TMPL_VAR .loc.template_podcast_url>"></td></tr>
|
||||
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_archive_url></td>
|
||||
<td><input name="archive_url" style="width:100%;" value="<TMPL_VAR archive_url>" placeholder="<TMPL_VAR .loc.template_archive_url>"></td></tr>
|
||||
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_comments></td>
|
||||
<td><textarea name="comment" class="animated" style="width:100%;" placeholder="<TMPL_VAR .loc.template_comments>"><TMPL_VAR comment></textarea></td></tr>
|
||||
<!--<tr> <td class="label">studio</td> <td><TMPL_VAR studio></td></tr>-->
|
||||
</table>
|
||||
|
||||
<div class="buttons">
|
||||
<TMPL_IF .allow.update_series_template>
|
||||
<button type=submit name="action" value="save"><TMPL_VAR .loc.button_save_template></button>
|
||||
</TMPL_IF>
|
||||
<!--
|
||||
<button onclick="cancel_edit_series('<TMPL_VAR series_id>');return false;">cancel</button>
|
||||
-->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- schedule -->
|
||||
<div id="tabs-schedule">
|
||||
|
||||
<!-- edit schedule -->
|
||||
<TMPL_IF .allow.update_schedule>
|
||||
<div id="edit_schedule_<TMPL_VAR .series_id>" class="editor">
|
||||
<TMPL_LOOP schedule>
|
||||
<div class="row schedule">
|
||||
<form method="post"
|
||||
action="series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id>#tabs-schedule"
|
||||
id="schedule_<TMPL_VAR schedule_id>"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>" />
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>" />
|
||||
<input type="hidden" name="schedule_id" value="<TMPL_VAR schedule_id>" />
|
||||
|
||||
<div class="cell exclude">
|
||||
<TMPL_VAR .loc.exception><br/>
|
||||
<input name="exclude" value="<TMPL_VAR exclude>" type="checkbox" class="exclude">
|
||||
</div>
|
||||
|
||||
<div class="cell weekday"></div>
|
||||
<div class="cell start">
|
||||
<TMPL_VAR .loc.schedule_start><br/>
|
||||
<input name="start" value="<TMPL_VAR start>" class="datetimepicker start" placeholder="<TMPL_VAR .loc.schedule_start>"/>
|
||||
</div>
|
||||
|
||||
<div class="cell duration">
|
||||
<TMPL_VAR .loc.duration><br/>
|
||||
<select name="duration" value="<TMPL_VAR duration>" class="duration"/>
|
||||
<option value="30">30 <TMPL_VAR .loc.minutes></option>
|
||||
<option value="60">1 <TMPL_VAR .loc.hour></option>
|
||||
<option value="90">1.5 <TMPL_VAR .loc.hours></option>
|
||||
<option value="120">2 <TMPL_VAR .loc.hours></option>
|
||||
<option value=""><TMPL_VAR .loc.choose_free></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell period_type">
|
||||
<TMPL_VAR .loc.period_type><br/>
|
||||
<select name="period_type" onchange="showScheduleFields('schedule_<TMPL_VAR schedule_id>')">
|
||||
<option value="single" <TMPL_IF period_type_single>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_single></option>
|
||||
<option value="days" <TMPL_IF period_type_days>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_days></option>
|
||||
<option value="week_of_month" <TMPL_IF period_type_week_of_month>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_week_of_month></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell end">
|
||||
<TMPL_VAR .loc.schedule_end><br/>
|
||||
<input name="end" value="<TMPL_VAR end>" class="datetimepicker end" placeholder="<TMPL_VAR .loc.schedule_end>"/>
|
||||
</div>
|
||||
|
||||
<div class="cell frequency">
|
||||
<TMPL_VAR .loc.frequency><br/>
|
||||
<select name="frequency" value="<TMPL_VAR frequency>" class="frequency">
|
||||
<option value="1"><TMPL_VAR .loc.daily></option>
|
||||
<option value="7"><TMPL_VAR .loc.weekly></option>
|
||||
<option value="14"><TMPL_VAR .loc.every> 2 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="21"><TMPL_VAR .loc.every> 3 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="28"><TMPL_VAR .loc.every> 4 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="42"><TMPL_VAR .loc.every> 6 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="56"><TMPL_VAR .loc.every> 8 <TMPL_VAR .loc.weeks></option>
|
||||
<option value=""><TMPL_VAR .loc.choose_free></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell week_of_month">
|
||||
<TMPL_VAR .loc.week_of_month><br/>
|
||||
<select name="week_of_month" value="<TMPL_VAR week_of_month>" class="week_of_month">
|
||||
<option value="1"><TMPL_VAR .loc.week_1st></option>
|
||||
<option value="2"><TMPL_VAR .loc.week_2nd></option>
|
||||
<option value="3"><TMPL_VAR .loc.week_3rd></option>
|
||||
<option value="4"><TMPL_VAR .loc.week_4th></option>
|
||||
<option value="5"><TMPL_VAR .loc.week_5th></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell schedule_weekday">
|
||||
<TMPL_VAR .loc.weekday><br/>
|
||||
<select name="weekday" value="<TMPL_VAR weekday>" class="schedule_weekday"/>
|
||||
<option value="1"><TMPL_VAR .loc.monday></option>
|
||||
<option value="2"><TMPL_VAR .loc.tuesday></option>
|
||||
<option value="3"><TMPL_VAR .loc.wednesday></option>
|
||||
<option value="4"><TMPL_VAR .loc.thursday></option>
|
||||
<option value="5"><TMPL_VAR .loc.friday></option>
|
||||
<option value="6"><TMPL_VAR .loc.saturday></option>
|
||||
<option value="7"><TMPL_VAR .loc.sunday></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell schedule_month">
|
||||
<TMPL_VAR .loc.every_month><br/>
|
||||
<select name="month" value="<TMPL_VAR month>" class="schedule_month"/>
|
||||
<option value="1"><TMPL_VAR .loc.every_time></option>
|
||||
<option value="2"><TMPL_VAR .loc.every_2nd_time></option>
|
||||
<option value="3"><TMPL_VAR .loc.every_3rd_time></option>
|
||||
<option value="4"><TMPL_VAR .loc.every_4th_time></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell nextDay">
|
||||
<TMPL_VAR .loc.nextDay><br/>
|
||||
<input name="nextDay" value="<TMPL_VAR nextDay>" type="checkbox" class="nextDay">
|
||||
</div>
|
||||
|
||||
<div class="cell save"><br>
|
||||
<button type="submit" name="action" value="save_schedule"
|
||||
><TMPL_VAR .loc.button_save_schedule></button>
|
||||
</div>
|
||||
<TMPL_IF .allow.delete_schedule>
|
||||
<div class="cell delete"><br>
|
||||
<button type="submit" name="action" value="delete_schedule"
|
||||
onclick="commitForm('schedule_<TMPL_VAR schedule_id>','delete_schedule','<TMPL_VAR .loc.button_delete_schedule>');return false;"
|
||||
><TMPL_VAR .loc.button_delete_schedule></button>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</form>
|
||||
</div>
|
||||
</TMPL_LOOP>
|
||||
|
||||
<div class="row schedule row<TMPL_IF show_hint_to_add_schedule> active</TMPL_IF>">
|
||||
<form id="schedule_add" method="post"
|
||||
action="series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id>#tabs-schedule"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>" />
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>" />
|
||||
|
||||
<div class="cell exclude">
|
||||
<TMPL_VAR .loc.exception><br/>
|
||||
<input name="exclude" value="<TMPL_VAR exclude>" type="checkbox" class="exclude" onclick="updateScheduleButtonName()"/>
|
||||
</div>
|
||||
|
||||
<div class="cell weekday"></div>
|
||||
<div class="cell start">
|
||||
<TMPL_VAR .loc.schedule_start><br/>
|
||||
<input name="start" value="<TMPL_VAR start>" class="datetimepicker start" placeholder="<TMPL_VAR .loc.schedule_start>"/>
|
||||
</div>
|
||||
|
||||
<div class="cell duration">
|
||||
<TMPL_VAR .loc.duration><br/>
|
||||
<select name="duration" value="<TMPL_VAR duration>" class="duration"/>
|
||||
<option value="30">30 <TMPL_VAR .loc.minutes></option>
|
||||
<option value="60">1 <TMPL_VAR .loc.hour></option>
|
||||
<option value="90">1.5 <TMPL_VAR .loc.hours></option>
|
||||
<option value="120">2 <TMPL_VAR .loc.hours></option>
|
||||
<option value=""><TMPL_VAR .loc.choose_free></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell period_type">
|
||||
<TMPL_VAR .loc.period_type><br/>
|
||||
<select name="period_type" onchange="showScheduleFields('schedule_add')">
|
||||
<option value="single" <TMPL_IF period_type_single>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_single></option>
|
||||
<option value="days" <TMPL_IF period_type_days>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_days></option>
|
||||
<option value="week_of_month" <TMPL_IF period_type_week_of_month>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_week_of_month></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell end">
|
||||
<TMPL_VAR .loc.schedule_end><br/>
|
||||
<input name="end" value="<TMPL_VAR end>" class="datetimepicker end" placeholder="<TMPL_VAR .loc.schedule_end>"/>
|
||||
</div>
|
||||
|
||||
<div class="cell frequency">
|
||||
<TMPL_VAR .loc.frequency><br/>
|
||||
<select name="frequency" value="<TMPL_VAR frequency>" class="frequency">
|
||||
<option value="1"><TMPL_VAR .loc.daily></option>
|
||||
<option value="7"><TMPL_VAR .loc.weekly></option>
|
||||
<option value="14"><TMPL_VAR .loc.every> 2 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="21"><TMPL_VAR .loc.every> 3 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="28"><TMPL_VAR .loc.every> 4 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="42"><TMPL_VAR .loc.every> 6 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="56"><TMPL_VAR .loc.every> 8 <TMPL_VAR .loc.weeks></option>
|
||||
<option value=""><TMPL_VAR .loc.choose_free></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell week_of_month">
|
||||
<TMPL_VAR .loc.week_of_month><br/>
|
||||
<select name="week_of_month" value="<TMPL_VAR week_of_month>" class="week_of_month">
|
||||
<option value="1"><TMPL_VAR .loc.week_1st></option>
|
||||
<option value="2"><TMPL_VAR .loc.week_2nd></option>
|
||||
<option value="3"><TMPL_VAR .loc.week_3rd></option>
|
||||
<option value="4"><TMPL_VAR .loc.week_4th></option>
|
||||
<option value="5"><TMPL_VAR .loc.week_5th></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell schedule_weekday">
|
||||
<TMPL_VAR .loc.weekday><br/>
|
||||
<select name="weekday" value="<TMPL_VAR weekday>" class="schedule_weekday"/>
|
||||
<option value="1"><TMPL_VAR .loc.monday></option>
|
||||
<option value="2"><TMPL_VAR .loc.tuesday></option>
|
||||
<option value="3"><TMPL_VAR .loc.wednesday></option>
|
||||
<option value="4"><TMPL_VAR .loc.thursday></option>
|
||||
<option value="5"><TMPL_VAR .loc.friday></option>
|
||||
<option value="6"><TMPL_VAR .loc.saturday></option>
|
||||
<option value="7"><TMPL_VAR .loc.sunday></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell schedule_month">
|
||||
<TMPL_VAR .loc.every_month><br/>
|
||||
<select name="month" value="<TMPL_VAR month>" class="schedule_month"/>
|
||||
<option value="1"><TMPL_VAR .loc.every_time></option>
|
||||
<option value="2"><TMPL_VAR .loc.every_2nd_time></option>
|
||||
<option value="3"><TMPL_VAR .loc.every_3rd_time></option>
|
||||
<option value="4"><TMPL_VAR .loc.every_4th_time></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell nextDay">
|
||||
<TMPL_VAR .loc.nextDay><br/>
|
||||
<input name="nextDay" value="<TMPL_VAR nextDay>" type="checkbox" class="nextDay">
|
||||
</div>
|
||||
|
||||
<TMPL_IF .allow.update_schedule>
|
||||
<div class="cell save">
|
||||
<br/>
|
||||
<button id="addScheduleButton" type="submit" name="action" value="save_schedule"
|
||||
><TMPL_VAR .loc.button_add_schedule></button>
|
||||
<TMPL_IF show_hint_to_add_schedule><TMPL_VAR .loc.label_hint_to_add_schedule></TMPL_IF>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- show schedule -->
|
||||
<div id="show_schedule_<TMPL_VAR series_id>" class="show_schedule">
|
||||
<table id="schedule_table" class="table" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th><TMPL_VAR .loc.from></th>
|
||||
<th><TMPL_VAR .loc.till></th>
|
||||
<!--<th class="cell">exclude</th>-->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<TMPL_LOOP series_dates>
|
||||
<tr <TMPL_IF exclude>class="exclude"</TMPL_IF> >
|
||||
<td><TMPL_VAR weekday></td>
|
||||
<td><TMPL_VAR start></td>
|
||||
<td><TMPL_VAR end></td>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- series events -->
|
||||
<div id="tabs-events">
|
||||
|
||||
<table class="table">
|
||||
<TMPL_LOOP events>
|
||||
<tr id="event_<TMPL_VAR event_id>">
|
||||
<td class="logo"><img src="<TMPL_VAR image>" width="33" height="33"></td>
|
||||
<td class="weekday"><TMPL_VAR weekday_short_name></td>
|
||||
<td class="date"><TMPL_VAR start_date></td>
|
||||
<td class="time"><TMPL_VAR start_time_name></td>
|
||||
<td class="spacer">-</td>
|
||||
<td class="time"><TMPL_VAR end_time></td>
|
||||
<td class="title"><TMPL_VAR full_title></td>
|
||||
<TMPL_IF .allow.update_event>
|
||||
|
||||
<td>
|
||||
<button onclick="edit_event('<TMPL_VAR event_id>','<TMPL_VAR .series_id>','<TMPL_VAR .studio_id>','<TMPL_VAR .project_id>','hide_series')"
|
||||
><TMPL_VAR .loc.button_edit></button>
|
||||
</td>
|
||||
</TMPL_IF>
|
||||
</tr>
|
||||
<tr id="event_container_<TMPL_VAR event_id>" style="display:none">
|
||||
<td colspan="5">
|
||||
<div id="event_details_<TMPL_VAR event_id>">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</TMPL_LOOP>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<TMPL_UNLESS has_single_events>
|
||||
<!-- series members -->
|
||||
<div id="tabs-members">
|
||||
<!--
|
||||
<div class="header">Members</div>
|
||||
-->
|
||||
|
||||
<table>
|
||||
|
||||
<!-- add members -->
|
||||
<TMPL_IF .allow.update_series>
|
||||
<tr>
|
||||
<td>
|
||||
<button onclick="edit_series_members('<TMPL_VAR .series_id>')" style="float:left"
|
||||
><TMPL_VAR .loc.button_edit_member></button>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<TMPL_IF .allow.assign_series_member>
|
||||
<div class="edit_series_members_<TMPL_VAR .series_id>" style="display:none;">
|
||||
<form method="post" action="series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id>#tabs-members">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="action" value="add_user">
|
||||
<select name="user_id">
|
||||
<option value=""><TMPL_VAR .loc.label_choose_member></option>
|
||||
<TMPL_LOOP studio_users>
|
||||
<option value="<TMPL_VAR user_id>"><TMPL_VAR full_name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
<button type="submit" value="add user"
|
||||
><TMPL_VAR .loc.button_add_member></button>
|
||||
</form>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</TMPL_IF>
|
||||
</tr>
|
||||
|
||||
<!-- view members -->
|
||||
<TMPL_LOOP series_users>
|
||||
<tr>
|
||||
<td>
|
||||
<TMPL_VAR full_name>
|
||||
</td>
|
||||
|
||||
<TMPL_IF .allow.remove_series_member>
|
||||
<td>
|
||||
<div class="edit_series_members_<TMPL_VAR .series_id>" style="display:none">
|
||||
<form method="post" id="series_members_<TMPL_VAR .series_id>_<TMPL_VAR user_id>"
|
||||
action="series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id>#tabs-members"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="user_id" value="<TMPL_VAR user_id>">
|
||||
<input type="hidden" name="action" value="remove_user">
|
||||
<button type="submit" value="remove user"
|
||||
onclick="commitForm('series_members_<TMPL_VAR .series_id>_<TMPL_VAR user_id>', 'remove_user', '<TMPL_VAR .loc.button_remove_member>'); return false;"
|
||||
><TMPL_VAR .loc.button_remove_member></button>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="edit_series_members_<TMPL_VAR .series_id> label" style="display:none;max-width:10em;">
|
||||
<TMPL_VAR .loc.added> <TMPL_VAR .loc.at> <TMPL_VAR modified_at> <TMPL_VAR .loc.by> <TMPL_VAR modified_by>
|
||||
</td>
|
||||
</TMPL_IF>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- assign events from series_name and title-->
|
||||
<TMPL_IF .allow.scan_series_events>
|
||||
<!--
|
||||
<div id="tabs-import">
|
||||
<div id="scan_<TMPL_VAR .series_id>" class="editor">
|
||||
<div><TMPL_VAR .loc.label_import></div>
|
||||
<form method="post" action="series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id>#tabs-import">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="action" value="save_scan">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_import_series></td>
|
||||
<td><input name="assign_event_series_name" value="<TMPL_VAR assign_event_series_name>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_import_title></td>
|
||||
<td><input name="assign_event_title" value="<TMPL_VAR assign_event_title>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><button type="submit" value="save"><TMPL_VAR .loc.button_import_save></button></td>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="buttons">
|
||||
<div><TMPL_VAR .loc.label_import_scan></div>
|
||||
<form method="post" action="series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR .series_id>#tabs-import">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="action" value="scan_events">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="label"></td>
|
||||
<td><button type="submit" value="scan"
|
||||
><TMPL_VAR .loc.button_import_scan></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<TMPL_VAR scan_results escape="no">
|
||||
</div>
|
||||
-->
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- delete series -->
|
||||
<TMPL_IF .allow.delete_series>
|
||||
<div id="tabs-delete">
|
||||
<center>
|
||||
<div><TMPL_VAR .loc.label_delete_series></div>
|
||||
<div>
|
||||
<form method="post" action="series.cgi#tabs-delete" id="series_<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="action" value="delete">
|
||||
<button type="submit" value="delete this series"
|
||||
onclick="commitForm('series_<TMPL_VAR .series_id>','delete','<TMPL_VAR .loc.button_delete_series>');return false;"
|
||||
><TMPL_VAR .loc.button_delete_series></button>
|
||||
</form>
|
||||
</div>
|
||||
</center>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
</TMPL_UNLESS> <!-- has single events-->
|
||||
|
||||
<div id="selectImage"></div>
|
||||
<div class="label right"><TMPL_VAR .loc.modified> <TMPL_VAR .loc.at> <TMPL_VAR modified_at> <TMPL_VAR .loc.by> <TMPL_VAR modified_by>.</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</TMPL_IF>
|
||||
108
website/agenda/planung/templates/edit_user_roles.html
Normal file
108
website/agenda/planung/templates/edit_user_roles.html
Normal file
@@ -0,0 +1,108 @@
|
||||
|
||||
<style type="text/css">
|
||||
#content div.label{
|
||||
width:10em;
|
||||
float:left;
|
||||
padding:0;
|
||||
margin:0;
|
||||
color:#555;
|
||||
}
|
||||
|
||||
#content div.user{
|
||||
border:1px solid gray;
|
||||
border-radius:1em;
|
||||
margin:1em;
|
||||
width:30em;
|
||||
float:left;
|
||||
}
|
||||
|
||||
#content div.editor div.right{
|
||||
float:right;
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
#content div.editor div.buttons{
|
||||
text-align:center;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
#content div.editor div.buttons button,
|
||||
#content div.editor div.buttons input{
|
||||
margin-left:1em;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
function edit_user(name){
|
||||
if ($('#edit_'+name).css('display')=='none'){
|
||||
$('#view_'+name).hide();
|
||||
$('#edit_'+name).show();
|
||||
}else{
|
||||
cancel_edit_user(name);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function add_user(){
|
||||
$('.editor').hide();
|
||||
$('#edit_new').show();
|
||||
return false;
|
||||
}
|
||||
function cancel_edit_user(name){
|
||||
$('#edit_'+name).hide();
|
||||
$('#view_'+name).show();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<h2>users</h2>
|
||||
<TMPL_LOOP users>
|
||||
<div class="user">
|
||||
<div id="header">
|
||||
<div style="float:left;font-weight:bold;"><TMPL_VAR name></div>
|
||||
<button onclick="edit_user('<TMPL_VAR id>')">edit</button>
|
||||
</div>
|
||||
<div id="view_<TMPL_VAR id>" class="view">
|
||||
<div class="label">name</div> <div><TMPL_VAR name> </div>
|
||||
<div class="label">full name</div> <div><TMPL_VAR full_name> </div>
|
||||
<div class="label">password</div> <div><TMPL_VAR password> </div>
|
||||
<div class="label">email</div> <div><TMPL_VAR email> </div>
|
||||
<div class="label">roles</div> <div><TMPL_LOOP roles><TMPL_VAR name> </TMPL_LOOP> </div>
|
||||
</div>
|
||||
<div id="edit_<TMPL_VAR id>" class="editor" style="display:none">
|
||||
<form method="post">
|
||||
<div class="label">name</div> <div><input name="name" value="<TMPL_VAR name>"></div>
|
||||
<div class="label">full name</div> <div><input name="full_name" value="<TMPL_VAR full_name>"></div>
|
||||
<div class="label">password</div> <div><input type="password" name="password"></div>
|
||||
<div class="label">password</div> <div><input type="password" name="password2"></div>
|
||||
<div class="label">email</div> <div><input name="email" value="<TMPL_VAR email>"></div>
|
||||
<div class="buttons">
|
||||
<button onclick="cancel_edit_user('<TMPL_VAR id>');return false;">cancel</button>
|
||||
<input type=submit name="action" value="save">
|
||||
<div class="right"><input type=submit name="action" value="delete"></div>
|
||||
<input type="hidden" name="id" value="<TMPL_VAR id>">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_LOOP>
|
||||
|
||||
<div style="clear:both" class="newuser">
|
||||
<button onclick="add_user('<TMPL_VAR name>')">add user</button>
|
||||
<div id="edit_new" class="user editor" style="display:none">
|
||||
<form method="post">
|
||||
<div class="label">name</div> <div><input name="name" value="<TMPL_VAR name>"></div>
|
||||
<div class="label">full name</div> <div><input name="full_name" value="<TMPL_VAR full_name>"></div>
|
||||
<div class="label">password</div> <div><input type="password" name="password"></div>
|
||||
<div class="label">password</div> <div><input type="password" name="password2"></div>
|
||||
<div class="label">email</div> <div><input name="email" value="<TMPL_VAR email>"></div>
|
||||
<div class="buttons">
|
||||
<button onclick="cancel_edit_user('new');return false;">cancel</button>
|
||||
<input type=submit name="action" value="save">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
312
website/agenda/planung/templates/edit_work_time.html
Normal file
312
website/agenda/planung/templates/edit_work_time.html
Normal file
@@ -0,0 +1,312 @@
|
||||
<TMPL_IF .allow.read_series>
|
||||
|
||||
<script src="js/datetime.js" type="text/javascript"></script>
|
||||
<!-- <script src="js/localization.js" type="text/javascript"></script> -->
|
||||
<link rel="stylesheet" href="css/work_time.css" type="text/css" />
|
||||
|
||||
<link href="css/jquery-ui-timepicker.css" type="text/css" rel="stylesheet" />
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
<script src="js/jquery.autosize.min.js" type="text/javascript"></script>
|
||||
|
||||
<link href="css/theme.default.css" rel="stylesheet">
|
||||
<script src="js/jquery.tablesorter.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.widgets.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.scroller.js"></script>
|
||||
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
<TMPL_IF .getBack>
|
||||
$(document).ready(
|
||||
function(){
|
||||
getBack()
|
||||
}
|
||||
);
|
||||
</TMPL_IF>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#editor div p a img {
|
||||
float:right;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h2><TMPL_VAR .loc.title></h2>
|
||||
|
||||
<!-- view worktime -->
|
||||
<div id="view_<TMPL_VAR .schedule_id>" class="view" style="clear:both">
|
||||
<div class="buttons">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- edit schedule -->
|
||||
<TMPL_IF .allow.update_schedule>
|
||||
<div id="edit_schedule_<TMPL_VAR .schedule_id>" class="editor">
|
||||
<TMPL_LOOP schedule>
|
||||
<div class="row schedule<TMPL_IF selected> selected</TMPL_IF>">
|
||||
<form method="post"
|
||||
action="work_time.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&schedule_id=<TMPL_VAR schedule_id>"
|
||||
id="schedule_<TMPL_VAR schedule_id>"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>" />
|
||||
<input type="hidden" name="schedule_id" value="<TMPL_VAR schedule_id>" />
|
||||
<input type="hidden" name="type" value="service" />
|
||||
|
||||
<div class="cell exclude">
|
||||
<TMPL_VAR .loc.exception><br/>
|
||||
<input name="exclude" value="<TMPL_VAR exclude>" type="checkbox" class="exclude">
|
||||
</div>
|
||||
|
||||
<div class="cell weekday"></div>
|
||||
<div class="cell start">
|
||||
<TMPL_VAR .loc.schedule_start><br/>
|
||||
<input name="start" value="<TMPL_VAR start>" class="datetimepicker start"/>
|
||||
</div>
|
||||
|
||||
<div class="cell duration">
|
||||
<TMPL_VAR .loc.duration><br/>
|
||||
<select name="duration" value="<TMPL_VAR duration>" class="duration"/>
|
||||
<option value="60">1 <TMPL_VAR .loc.hour></option>
|
||||
<option value="120">2 <TMPL_VAR .loc.hours></option>
|
||||
<option value="180">3 <TMPL_VAR .loc.hours></option>
|
||||
<option value="240">4 <TMPL_VAR .loc.hours></option>
|
||||
<option value="300">5 <TMPL_VAR .loc.hours></option>
|
||||
<option value="360">6 <TMPL_VAR .loc.hours></option>
|
||||
<option value="420">7 <TMPL_VAR .loc.hours></option>
|
||||
<option value="480">8 <TMPL_VAR .loc.hours></option>
|
||||
<option value=""><TMPL_VAR .loc.choose_free></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell title">
|
||||
<TMPL_VAR .loc.schedule_title><br/>
|
||||
<input name="title" value="<TMPL_VAR title>" class="title"/>
|
||||
</div>
|
||||
|
||||
<div class="cell period_type">
|
||||
<TMPL_VAR .loc.period_type><br/>
|
||||
<select name="period_type" onchange="showScheduleFields('schedule_<TMPL_VAR schedule_id>')">
|
||||
<option value="single" <TMPL_IF period_type_single>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_single></option>
|
||||
<option value="days" <TMPL_IF period_type_days>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_days></option>
|
||||
<option value="week_of_month" <TMPL_IF period_type_week_of_month>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_week_of_month></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell end">
|
||||
<TMPL_VAR .loc.schedule_end><br/>
|
||||
<input name="end" value="<TMPL_VAR end>" class="datetimepicker end"/>
|
||||
</div>
|
||||
|
||||
<div class="cell frequency">
|
||||
<TMPL_VAR .loc.frequency><br/>
|
||||
<select name="frequency" value="<TMPL_VAR frequency>" class="frequency">
|
||||
<option value="7"><TMPL_VAR .loc.weekly></option>
|
||||
<option value="14"><TMPL_VAR .loc.every> 2 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="21"><TMPL_VAR .loc.every> 3 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="28"><TMPL_VAR .loc.every> 4 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="42"><TMPL_VAR .loc.every> 6 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="56"><TMPL_VAR .loc.every> 8 <TMPL_VAR .loc.weeks></option>
|
||||
<option value=""><TMPL_VAR .loc.choose_free></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell week_of_month">
|
||||
<TMPL_VAR .loc.week_of_month><br/>
|
||||
<select name="week_of_month" value="<TMPL_VAR week_of_month>" class="week_of_month">
|
||||
<option value="1"><TMPL_VAR .loc.week_1st></option>
|
||||
<option value="2"><TMPL_VAR .loc.week_2nd></option>
|
||||
<option value="3"><TMPL_VAR .loc.week_3rd></option>
|
||||
<option value="4"><TMPL_VAR .loc.week_4th></option>
|
||||
<option value="5"><TMPL_VAR .loc.week_5th></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell schedule_weekday">
|
||||
<TMPL_VAR .loc.weekday><br/>
|
||||
<select name="weekday" value="<TMPL_VAR weekday>" class="schedule_weekday"/>
|
||||
<option value="1"><TMPL_VAR .loc.monday></option>
|
||||
<option value="2"><TMPL_VAR .loc.tuesday></option>
|
||||
<option value="3"><TMPL_VAR .loc.wednesday></option>
|
||||
<option value="4"><TMPL_VAR .loc.thursday></option>
|
||||
<option value="5"><TMPL_VAR .loc.friday></option>
|
||||
<option value="6"><TMPL_VAR .loc.saturday></option>
|
||||
<option value="7"><TMPL_VAR .loc.sunday></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell schedule_month">
|
||||
<TMPL_VAR .loc.every_month><br/>
|
||||
<select name="month" value="<TMPL_VAR month>" class="schedule_month"/>
|
||||
<option value="1"><TMPL_VAR .loc.every_time></option>
|
||||
<option value="2"><TMPL_VAR .loc.every_2nd_time></option>
|
||||
<option value="3"><TMPL_VAR .loc.every_3rd_time></option>
|
||||
<option value="4"><TMPL_VAR .loc.every_4th_time></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell save"><br>
|
||||
<button type="submit" name="action" value="save_schedule"
|
||||
><TMPL_VAR .loc.button_save_schedule></button>
|
||||
</div>
|
||||
<TMPL_IF .allow.delete_schedule>
|
||||
<div class="cell delete"><br>
|
||||
<button type="submit" name="action" value="delete_schedule"
|
||||
onclick="commitForm('schedule_<TMPL_VAR schedule_id>','delete_schedule','<TMPL_VAR .loc.button_delete_schedule>');return false;"
|
||||
><TMPL_VAR .loc.button_delete_schedule></button>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</form>
|
||||
</div>
|
||||
</TMPL_LOOP>
|
||||
|
||||
<!-- add schedule -->
|
||||
<div class="row schedule row<TMPL_IF show_hint_to_add_schedule> active</TMPL_IF>">
|
||||
<form id="schedule_add" method="post"
|
||||
action="work_time.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>" />
|
||||
<input type="hidden" name="type" value="service" />
|
||||
|
||||
|
||||
<div class="cell exclude">
|
||||
<TMPL_VAR .loc.exception><br/>
|
||||
<input name="exclude" value="<TMPL_VAR exclude>" type="checkbox" class="exclude" onclick="updateScheduleButtonName()"/>
|
||||
</div>
|
||||
|
||||
<div class="cell weekday"></div>
|
||||
<div class="cell start">
|
||||
<TMPL_VAR .loc.schedule_start><br/>
|
||||
<input name="start" value="<TMPL_VAR start>" class="datetimepicker start"/>
|
||||
</div>
|
||||
|
||||
<div class="cell duration">
|
||||
<TMPL_VAR .loc.duration><br/>
|
||||
<select name="duration" value="<TMPL_VAR duration>" class="duration"/>
|
||||
<option value="60">1 <TMPL_VAR .loc.hour></option>
|
||||
<option value="120">2 <TMPL_VAR .loc.hours></option>
|
||||
<option value="180">3 <TMPL_VAR .loc.hours></option>
|
||||
<option value="240">4 <TMPL_VAR .loc.hours></option>
|
||||
<option value="300">5 <TMPL_VAR .loc.hours></option>
|
||||
<option value="360">6 <TMPL_VAR .loc.hours></option>
|
||||
<option value="420">7 <TMPL_VAR .loc.hours></option>
|
||||
<option value="480">8 <TMPL_VAR .loc.hours></option>
|
||||
<option value=""><TMPL_VAR .loc.choose_free></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell title">
|
||||
<TMPL_VAR .loc.schedule_title><br/>
|
||||
<input name="title" value="<TMPL_VAR title>" class="title"/>
|
||||
</div>
|
||||
|
||||
<div class="cell period_type">
|
||||
<TMPL_VAR .loc.period_type><br/>
|
||||
<select name="period_type" onchange="showScheduleFields('schedule_add')">
|
||||
<option value="single" <TMPL_IF period_type_single>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_single></option>
|
||||
<option value="days" <TMPL_IF period_type_days>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_days></option>
|
||||
<option value="week_of_month" <TMPL_IF period_type_week_of_month>selected="selected"</TMPL_IF>
|
||||
><TMPL_VAR .loc.period_type_week_of_month></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell end">
|
||||
<TMPL_VAR .loc.schedule_end><br/>
|
||||
<input name="end" value="<TMPL_VAR end>" class="datetimepicker end"/>
|
||||
</div>
|
||||
|
||||
<div class="cell frequency">
|
||||
<TMPL_VAR .loc.frequency><br/>
|
||||
<select name="frequency" value="<TMPL_VAR frequency>" class="frequency">
|
||||
<option value="7"><TMPL_VAR .loc.weekly></option>
|
||||
<option value="14"><TMPL_VAR .loc.every> 2 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="21"><TMPL_VAR .loc.every> 3 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="28"><TMPL_VAR .loc.every> 4 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="42"><TMPL_VAR .loc.every> 6 <TMPL_VAR .loc.weeks></option>
|
||||
<option value="56"><TMPL_VAR .loc.every> 8 <TMPL_VAR .loc.weeks></option>
|
||||
<option value=""><TMPL_VAR .loc.choose_free></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell week_of_month">
|
||||
<TMPL_VAR .loc.week_of_month><br/>
|
||||
<select name="week_of_month" value="<TMPL_VAR week_of_month>" class="week_of_month">
|
||||
<option value="1"><TMPL_VAR .loc.week_1st></option>
|
||||
<option value="2"><TMPL_VAR .loc.week_2nd></option>
|
||||
<option value="3"><TMPL_VAR .loc.week_3rd></option>
|
||||
<option value="4"><TMPL_VAR .loc.week_4th></option>
|
||||
<option value="5"><TMPL_VAR .loc.week_5th></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell schedule_weekday">
|
||||
<TMPL_VAR .loc.weekday><br/>
|
||||
<select name="weekday" value="<TMPL_VAR weekday>" class="schedule_weekday"/>
|
||||
<option value="1"><TMPL_VAR .loc.monday></option>
|
||||
<option value="2"><TMPL_VAR .loc.tuesday></option>
|
||||
<option value="3"><TMPL_VAR .loc.wednesday></option>
|
||||
<option value="4"><TMPL_VAR .loc.thursday></option>
|
||||
<option value="5"><TMPL_VAR .loc.friday></option>
|
||||
<option value="6"><TMPL_VAR .loc.saturday></option>
|
||||
<option value="7"><TMPL_VAR .loc.sunday></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell schedule_month">
|
||||
<TMPL_VAR .loc.every_month><br/>
|
||||
<select name="month" value="<TMPL_VAR month>" class="schedule_month"/>
|
||||
<option value="1"><TMPL_VAR .loc.every_time></option>
|
||||
<option value="2"><TMPL_VAR .loc.every_2nd_time></option>
|
||||
<option value="3"><TMPL_VAR .loc.every_3rd_time></option>
|
||||
<option value="4"><TMPL_VAR .loc.every_4th_time></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<TMPL_IF .allow.update_schedule>
|
||||
<div class="cell save">
|
||||
<br/>
|
||||
<button id="addScheduleButton" type="submit" name="action" value="save_schedule"
|
||||
><TMPL_VAR .loc.button_add_schedule></button>
|
||||
<TMPL_IF show_hint_to_add_schedule><TMPL_VAR .loc.label_hint_to_add_schedule></TMPL_IF>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- show schedule -->
|
||||
<div id="show_schedule_<TMPL_VAR schedule_id>" class="show_schedule">
|
||||
<table id="schedule_table" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th><TMPL_VAR .loc.from></th>
|
||||
<th><TMPL_VAR .loc.till></th>
|
||||
<th><TMPL_VAR .loc.title></th>
|
||||
<th><TMPL_VAR .loc.schedule_type></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<TMPL_LOOP work_dates>
|
||||
<tr <TMPL_IF exclude>class="exclude"</TMPL_IF> >
|
||||
<td><TMPL_VAR weekday></td>
|
||||
<td><TMPL_VAR start></td>
|
||||
<td><TMPL_VAR end></td>
|
||||
<td><TMPL_VAR title></td>
|
||||
<td><TMPL_VAR type></td>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</TMPL_IF>
|
||||
21
website/agenda/planung/templates/error_log.html
Normal file
21
website/agenda/planung/templates/error_log.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<TMPL_INCLUDE header.html>
|
||||
<h1><a href="error_log.cgi">Error-Log</a></h1>
|
||||
<style>
|
||||
pre {line-height:110%;font-size:8pt;border:1px solid #ccc;}
|
||||
</style>
|
||||
|
||||
logs:
|
||||
<a href="error_log.cgi?log=errors">error</a> |
|
||||
<a href="error_log.cgi?log=job">jobs</a> |
|
||||
<a href="error_log.cgi?log=app">application</a> |
|
||||
<a href="error_log.cgi?log=mem">memory</a>
|
||||
lines:
|
||||
<a href="error_log.cgi?lines=100">100</a> |
|
||||
<a href="error_log.cgi?lines=1000">1000</a> |
|
||||
<a href="error_log.cgi?lines=10000">10000</a> |
|
||||
warnings:
|
||||
<a href="error_log.cgi">hide</a> |
|
||||
<a href="error_log.cgi?warn=1">show</a> |
|
||||
<pre>
|
||||
|
||||
|
||||
150
website/agenda/planung/templates/event_history.html
Normal file
150
website/agenda/planung/templates/event_history.html
Normal file
@@ -0,0 +1,150 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title><TMPL_VAR .doc.title></title>
|
||||
<link href="css/event.css" type="text/css" rel="stylesheet"/>
|
||||
<link href="css/theme.default.css" rel="stylesheet">
|
||||
<script src="js/jquery.tablesorter.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.widgets.min.js"></script>
|
||||
|
||||
<style>
|
||||
table#event_history tr td{
|
||||
vertical-align:middle;
|
||||
}
|
||||
table#event_history img{
|
||||
width:24px;
|
||||
height:24px;
|
||||
}
|
||||
table#event_history th.status{
|
||||
width:16px;
|
||||
word-break: break-all;
|
||||
}
|
||||
table#event_history td.status{
|
||||
text-align:center;
|
||||
}
|
||||
body #content{
|
||||
max-width:1200px;
|
||||
min-width:600px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
$(function(){
|
||||
$('table').tablesorter({
|
||||
widgets : ['zebra','filter'],
|
||||
usNumberFormat : false
|
||||
});
|
||||
});
|
||||
|
||||
function showDiff(){
|
||||
var ids=[];
|
||||
$('#event_history input.diff:checked').each(function(){
|
||||
ids.push($(this).val());
|
||||
});
|
||||
|
||||
if(ids.length!=2){
|
||||
alert("please choose exaclty 2 versions to compare")
|
||||
return;
|
||||
}
|
||||
|
||||
// forward to comparator
|
||||
project_id='<TMPL_VAR .project_id>';
|
||||
studio_id='<TMPL_VAR .studio_id>';
|
||||
series_id='<TMPL_VAR series_id>';
|
||||
event_id="<TMPL_VAR event_id>";
|
||||
if (project_id=='') return ;
|
||||
if (studio_id=='') return ;
|
||||
if (event_id=='') return ;
|
||||
var url= 'event_history.cgi?';
|
||||
url+='project_id='+project_id;
|
||||
url+='&studio_id='+studio_id;
|
||||
url+='&series_id='+series_id;
|
||||
url+='&event_id='+event_id;
|
||||
url+='&action=diff';
|
||||
url+='&v1='+ids[0];
|
||||
url+='&v2='+ids[1];
|
||||
load(url);
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<TMPL_IF .allow.read_event>
|
||||
<!-- edit -->
|
||||
<div >
|
||||
|
||||
|
||||
<!-- buttons -->
|
||||
<div class="buttons">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<table id="event_history" class="tablesorter">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="status" title="<TMPL_VAR .loc.label_diff"><img src="image/32/diff.png"></th>
|
||||
<th><TMPL_VAR .loc.label_event></th>
|
||||
<th><TMPL_VAR .loc.label_start></th>
|
||||
<th class="status" title="<TMPL_VAR .loc.label_live>" ><img src="image/32/live.png"></th>
|
||||
<th class="status" title="<TMPL_VAR .loc.label_published>"><img src="image/32/published.png"></th>
|
||||
<th class="status" title="<TMPL_VAR .loc.label_playout>" ><img src="image/32/playout.png"></th>
|
||||
<th class="status" title="<TMPL_VAR .loc.label_archived>" ><img src="image/32/archived.png"></th>
|
||||
<th class="status" title="<TMPL_VAR .loc.label_deleted>" ><img src="image/32/deleted.png"></th>
|
||||
<th><TMPL_VAR .loc.label_modified_at></th>
|
||||
<th><TMPL_VAR .loc.label_modified_by></th>
|
||||
</tr>
|
||||
</head>
|
||||
<tbody>
|
||||
|
||||
<TMPL_LOOP events>
|
||||
<tr>
|
||||
<td class="status">
|
||||
<input type="checkbox" class="diff" value="<TMPL_VAR change_id>">
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<!--<TMPL_VAR key>-->
|
||||
<TMPL_UNLESS has_single_events>
|
||||
<TMPL_VAR series_name>
|
||||
<TMPL_IF title> - <TMPL_VAR title></TMPL_IF>
|
||||
<TMPL_ELSE>
|
||||
<TMPL_VAR title>
|
||||
</TMPL_UNLESS>
|
||||
<TMPL_IF user_title> : <TMPL_VAR user_title></TMPL_IF>
|
||||
<TMPL_IF episode> #<TMPL_VAR episode>
|
||||
<TMPL_IF rerun>Wdhlg</TMPL_IF>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_VAR start>
|
||||
</td>
|
||||
|
||||
<td class="status"><TMPL_IF live>x<TMPL_ELSE>-</TMPL_IF></td>
|
||||
<td class="status"><TMPL_IF published>x<TMPL_ELSE>-</TMPL_IF></td>
|
||||
<td class="status"><TMPL_IF playout>x<TMPL_ELSE>-</TMPL_IF></td>
|
||||
<td class="status"><TMPL_IF archived>x<TMPL_ELSE>-</TMPL_IF></td>
|
||||
<td class="status"><TMPL_IF deleted>x<TMPL_ELSE>-</TMPL_IF></td>
|
||||
<td><TMPL_VAR modified_at></td>
|
||||
<td><TMPL_VAR modified_by></td>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<button onclick="showDiff()"><TMPL_VAR loc.button_show_diff></button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end edit -->
|
||||
</TMPL_IF>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
25
website/agenda/planung/templates/header.html
Normal file
25
website/agenda/planung/templates/header.html
Normal file
@@ -0,0 +1,25 @@
|
||||
Content-Type: text/html; charset=UTF-8;
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Radio: Admin</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="javascript" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<TMPL_IF arefresh_time><meta http-equiv="refresh" content="<TMPL_VAR refresh_time>;url=<TMPL_VAR refresh_url escape=url>"></TMPL_IF>
|
||||
<TMPL_INCLUDE header_head.html>
|
||||
</head>
|
||||
<body>
|
||||
<TMPL_IF action_result>
|
||||
<br/> <br/> <br/>
|
||||
<div class="ok head"><TMPL_VAR action_result></div>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF error>
|
||||
<br/> <br/> <br/>
|
||||
<div class="error head"><TMPL_VAR error></div>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF subheader>
|
||||
<div><TMPL_VAR subheader></div>
|
||||
</TMPL_IF>
|
||||
|
||||
15
website/agenda/planung/templates/header_head.html
Normal file
15
website/agenda/planung/templates/header_head.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<script type="text/javascript">
|
||||
var event_manager=0;
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="css/admin.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/jquery-ui.min.css" type="text/css" />
|
||||
<!--<TMPL_VAR static_files_url>-->
|
||||
<script src="js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="js/jquery-ui.min.js" type="text/javascript"></script>
|
||||
<script src="js/admin.js" type="text/javascript"></script>
|
||||
<script src="js/history.js" type="text/javascript"></script>
|
||||
<script src="js/localization.js" type="text/javascript"></script>
|
||||
<script src="js/localization-datetime.js" type="text/javascript"></script>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
123
website/agenda/planung/templates/image.html
Normal file
123
website/agenda/planung/templates/image.html
Normal file
@@ -0,0 +1,123 @@
|
||||
|
||||
<link type="text/css" href="css/image_manager.css" rel="stylesheet"/>
|
||||
<link type="text/css" href="css/fileUploader.css" rel="stylesheet"/>
|
||||
<script src="js/fileUploader.js" type="text/javascript"></script>
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
<TMPL_IF .allow.create_image>
|
||||
<script src="js/image_upload.js" type="text/javascript"></script>
|
||||
</TMPL_IF>
|
||||
|
||||
<script>
|
||||
var project_id="<TMPL_VAR .project_id>";
|
||||
var studio_id="<TMPL_VAR .studio_id>";
|
||||
var selectedImageTab='select';
|
||||
|
||||
$(document).ready(
|
||||
function() {
|
||||
addLocalization('image');
|
||||
|
||||
//add tab change handler
|
||||
$("#image-tabs").tabs({
|
||||
activate: function(event, ui){
|
||||
if (ui==null) return;
|
||||
selectedImageTab=getSelectedTab('image-tabs');
|
||||
|
||||
<TMPL_IF .allow.create_image>
|
||||
if(selectedImageTab=="upload"){
|
||||
initUploadDialog();
|
||||
$('#imageList').hide();
|
||||
return
|
||||
}else{
|
||||
closeImageUpload();
|
||||
$('#imageList').show();
|
||||
}
|
||||
</TMPL_IF>
|
||||
}
|
||||
});
|
||||
// get initially selected tab
|
||||
selectedImageTab=getSelectedTab('image-tabs');
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<div id="content">
|
||||
<TMPL_IF .allow.read_image>
|
||||
|
||||
<div id="image-tabs">
|
||||
<ul>
|
||||
<li><a href="#image-tabs-select" value="select"><TMPL_VAR .loc.tab_select></a></li>
|
||||
<TMPL_IF .allow.update_image>
|
||||
<li><a href="#image-tabs-edit" value="edit"><TMPL_VAR .loc.tab_edit></a></li>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF .allow.create_image>
|
||||
<li><a href="#image-tabs-upload" value="upload"><TMPL_VAR .loc.tab_upload></a></li>
|
||||
</TMPL_IF>
|
||||
</ul>
|
||||
|
||||
<!-- select image -->
|
||||
<div id="image-tabs-select">
|
||||
</div>
|
||||
|
||||
<!-- edit image -->
|
||||
<TMPL_IF .allow.update_image>
|
||||
<div id="image-tabs-edit">
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- upload images -->
|
||||
<TMPL_IF .allow.create_image>
|
||||
<div id="image-tabs-upload">
|
||||
<div id="img_upload">
|
||||
<div id="img_upload_result"></div>
|
||||
<form id="image_upload" method="post" action="imageUpload.cgi" enctype="multipart/form-data">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input id="uploader" type="file" name="image" value="<TMPL_VAR image escape=0>" accept="text/*" maxlength="1000000" size="10"/> </td>
|
||||
<button type="submit" name="action" value="upload" id="pxUpload" ><TMPL_VAR .loc.button_upload></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- tabs -->
|
||||
</div>
|
||||
|
||||
<div id="imageList">
|
||||
<div style="float:right">
|
||||
<button onclick="decreaseImageSize();return false;" title="<TMPL_VAR .loc.button_zoom_out>">-</button>
|
||||
<button onclick="increaseImageSize();return false;" title="<TMPL_VAR .loc.button_zoom_in>">+</button>
|
||||
</div>
|
||||
<form id="image_manager" action="image.cgi">
|
||||
<input name="search" value="<TMPL_VAR search escape=0>" style="width:20em;">
|
||||
<input type="hidden" name="filename" value="<TMPL_VAR filename escape=0>">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<button onclick="searchImage();return false;"><TMPL_VAR .loc.button_search></button>
|
||||
</form>
|
||||
<div style="clear:both;">
|
||||
<TMPL_VAR count> <TMPL_VAR .loc.label_search_hits><br />
|
||||
<div class="images">
|
||||
<TMPL_LOOP images>
|
||||
<div class="image"
|
||||
id="img_<TMPL_VAR id>"
|
||||
style="background-image:url('<TMPL_VAR thumb_url>')"
|
||||
title="<TMPL_VAR description>"
|
||||
onclick="imageAction('<TMPL_VAR filename>');return false;"
|
||||
>
|
||||
<div class="label"><TMPL_VAR name></div>
|
||||
</div>
|
||||
</TMPL_LOOP>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="img_editor" style="display:none"></div>
|
||||
<div id="img_image" style="display:none"></div>
|
||||
|
||||
</TMPL_IF>
|
||||
<!-- content -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
61
website/agenda/planung/templates/imageUpload.html
Normal file
61
website/agenda/planung/templates/imageUpload.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<div>
|
||||
<form name="img_upload" id="img_upload" method="post" action="imageUpload.cgi" enctype="multipart/form-data">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<TMPL_IF filename>
|
||||
<a href="<TMPL_VAR local_media_url>images/<TMPL_VAR filename escape=0>" >
|
||||
<img src="<TMPL_VAR local_media_url>thumbs/<TMPL_VAR filename escape=0>" />
|
||||
<img src="<TMPL_VAR local_media_url>icons/<TMPL_VAR filename escape=0>" />
|
||||
</a>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_IF filename>
|
||||
<input value="{{thumbs/<TMPL_VAR filename escape=0>|<TMPL_VAR name escape=0>}}" size="40" />
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Datei</td>
|
||||
<td><input type="file" name="image" accept="image/*" maxlength="2000000" size="10"/> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Name: </td>
|
||||
<td><input value="<TMPL_VAR name escape=0>" name="name" size="40" maxlength="100"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Beschreibung: </td>
|
||||
<td><textarea name="description" cols="50" rows=5><TMPL_VAR description escape=0></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align:right">
|
||||
<input type="submit" name="action" value="Hochladen!" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<TMPL_IF action>
|
||||
<TMPL_IF error>
|
||||
<div id="output">failed</div>
|
||||
<div id="message"><TMPL_VAR error></div>
|
||||
<TMPL_ELSE>
|
||||
<div id="output">success</div>
|
||||
<div id="message">
|
||||
<TMPL_VAR action_result>
|
||||
{{thumbs//<TMPL_VAR filename>}}
|
||||
<button onclick="selectThisImage('<TMPL_VAR filename>')">assign to event</button>
|
||||
</div>
|
||||
<div id="upload_image_id"><TMPL_VAR image_id></div>
|
||||
<div id="upload_image_filename"><TMPL_VAR filename></div>
|
||||
<div id="upload_image_title"><TMPL_VAR title></div>
|
||||
<div id="upload_image_link">{{thumbs//<TMPL_VAR filename>}}</div>
|
||||
</TMPL_IF>
|
||||
</TMPL_IF>
|
||||
|
||||
62
website/agenda/planung/templates/image_edit.html
Normal file
62
website/agenda/planung/templates/image_edit.html
Normal file
@@ -0,0 +1,62 @@
|
||||
<html>
|
||||
<head>
|
||||
<link type="text/css" href="css/admin.css" rel="stylesheet"/>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<TMPL_LOOP images>
|
||||
<form id="save_img_<TMPL_VAR id>"
|
||||
method="post" action="image.cgi"
|
||||
onsubmit="saveImage('<TMPL_VAR id>','<TMPL_VAR filename>');return false;"
|
||||
style="float:left"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td rowspan="5"><a href="<TMPL_VAR image_url>" onclick="showImage('<TMPL_VAR image_url>');return false;"><img src="<TMPL_VAR thumb_url>" /></a></td>
|
||||
<td><TMPL_VAR .loc.label_name></td>
|
||||
<td><input value="<TMPL_VAR name escape=0>" name="update_name" class="field"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_description></td>
|
||||
<td><textarea name="update_description" cols="50" rows=5><TMPL_VAR description escape=0></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_created_at></td>
|
||||
<td><TMPL_VAR created_at> <TMPL_VAR .loc.label_created_by> <TMPL_VAR created_by></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_modified_at></td>
|
||||
<td><TMPL_VAR modified_at> <TMPL_VAR .loc.label_modified_by> <TMPL_VAR modified_by></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_editor_link></td>
|
||||
<td><input value="{{thumbs/<TMPL_VAR filename escape=0>|<TMPL_VAR name>}}" class="field"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td />
|
||||
<td>
|
||||
<TMPL_IF name="update_image">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>" />
|
||||
<input type="hidden" name="save_image" value="<TMPL_VAR filename escape=0>" />
|
||||
<button onclick="this.submit"><TMPL_VAR .loc.button_save></button/>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF name="delete_image">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>" />
|
||||
<button onclick="askDeleteImage('img_<TMPL_VAR id escape=0>','<TMPL_VAR filename escape=0>');return false;"><TMPL_VAR .loc.button_delete></button>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</TMPL_LOOP>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
8
website/agenda/planung/templates/image_single.html
Normal file
8
website/agenda/planung/templates/image_single.html
Normal file
@@ -0,0 +1,8 @@
|
||||
Content-type:text/html; charset=UTF-8;
|
||||
|
||||
<html>
|
||||
<body>
|
||||
<TMPL_LOOP images>
|
||||
<div class="label"><TMPL_VAR name></div></TMPL_LOOP>
|
||||
</body>
|
||||
</html>
|
||||
163
website/agenda/planung/templates/notify_event.html
Normal file
163
website/agenda/planung/templates/notify_event.html
Normal file
@@ -0,0 +1,163 @@
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title><TMPL_VAR .doc.title></title>
|
||||
<script src="js/page_leave_handler.js" type="text/javascript"></script>
|
||||
|
||||
<style>
|
||||
.mailHeader{
|
||||
background:#ccc;
|
||||
}
|
||||
|
||||
.mailSubject{
|
||||
border-bottom:2px solid #ccc;
|
||||
}
|
||||
|
||||
.mailBody{
|
||||
white-space:pre;
|
||||
border-top:2px solid #ccc;
|
||||
}
|
||||
|
||||
.done{
|
||||
background:#cfc;
|
||||
}
|
||||
|
||||
table#events td:nth-of-type(1){
|
||||
width:15em;
|
||||
}
|
||||
|
||||
table#events td:nth-of-type(2){
|
||||
width:60em;
|
||||
}
|
||||
|
||||
td.action, input.action{
|
||||
width:5em;
|
||||
}
|
||||
|
||||
form input{
|
||||
width:50em;
|
||||
}
|
||||
|
||||
form textarea{
|
||||
width:50em;
|
||||
height:14em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
var event_id='<TMPL_VAR event_id>';
|
||||
var selectImageId='';
|
||||
<TMPL_IF .event_edited>
|
||||
$(document).ready(
|
||||
function(){
|
||||
if ($('div.error').length>0) return;
|
||||
if(comeFromCalendar()) getBack();
|
||||
}
|
||||
);
|
||||
</TMPL_IF>
|
||||
|
||||
$(document).ready(
|
||||
function(){
|
||||
$("#forms form").submit(
|
||||
function( event ) {
|
||||
event.preventDefault();
|
||||
var $form = $( this );
|
||||
var posting = $.post("notify_events.cgi", $form.serialize());
|
||||
posting.done(
|
||||
function( data ) {
|
||||
var content = $( data ).find( "#content" );
|
||||
$('#result').html(content);
|
||||
var formId=$form.attr('id');
|
||||
$('#'+formId+" .mailHeader").addClass("done");
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="result" style="display:none"> </div>
|
||||
|
||||
<div id="forms">
|
||||
<TMPL_LOOP events>
|
||||
<form id="event_<TMPL_VAR event_id>">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR series_id>">
|
||||
<input type="hidden" name="event_id" value="<TMPL_VAR event_id>">
|
||||
<input type="hidden" name="action" value="send">
|
||||
|
||||
<table id="events">
|
||||
<tr id="header_<TMPL_VAR event_id>" class="mailHeader">
|
||||
<td><b><TMPL_VAR start></b></td>
|
||||
<td><b><TMPL_VAR full_title></b> | <TMPL_IF live>live</TMPL_IF> <TMPL_IF preproduction>preproduction</TMPL_IF> <TMPL_IF playout>playout</TMPL_IF></td>
|
||||
|
||||
<TMPL_IF noRecipient>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Warning</td>
|
||||
<td><div class="error">no recipient configured at series!</div></td>
|
||||
</tr>
|
||||
|
||||
<TMPL_ELSE>
|
||||
|
||||
<td class="action"><input class="button" type="submit" name="action" value="send"></td>
|
||||
</tr>
|
||||
|
||||
<TMPL_IF mail.Subject>
|
||||
<tr>
|
||||
<td>Subject</td>
|
||||
<td class="mailSubject"><input name="subject" value="<TMPL_VAR mail.Subject>"></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF mail.To>
|
||||
<tr>
|
||||
<td>To</td>
|
||||
<td><input name="to" value="<TMPL_VAR mail.To>"></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF mail.From>
|
||||
<tr>
|
||||
<td>From</td>
|
||||
<td><TMPL_VAR mail.From></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF mail.Cc>
|
||||
<tr>
|
||||
<td>Cc</td>
|
||||
<td><input name="cc" value="<TMPL_VAR mail.Cc>"></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF mail.Reply-To>
|
||||
<tr>
|
||||
<td>Reply-To</td>
|
||||
<td><TMPL_VAR mail.Reply-To></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF mail.data>
|
||||
<tr>
|
||||
<td>Content</td>
|
||||
<td class="mailBody"><textarea name="content" ><TMPL_VAR mail.data></textarea></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
</TMPL_IF>
|
||||
</table>
|
||||
</form>
|
||||
</TMPL_LOOP>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
161
website/agenda/planung/templates/notify_events.html
Normal file
161
website/agenda/planung/templates/notify_events.html
Normal file
@@ -0,0 +1,161 @@
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title><TMPL_VAR .doc.title></title>
|
||||
<script src="js/page_leave_handler.js" type="text/javascript"></script>
|
||||
|
||||
<style>
|
||||
.mailHeader{
|
||||
background:#ccc;
|
||||
}
|
||||
|
||||
.mailSubject{
|
||||
}
|
||||
|
||||
.mailBody{
|
||||
white-space:pre;
|
||||
}
|
||||
|
||||
.done{
|
||||
background:#cfc;
|
||||
}
|
||||
|
||||
table#events td:nth-of-type(1){
|
||||
width:15em;
|
||||
}
|
||||
|
||||
table#events td:nth-of-type(2){
|
||||
width:60em;
|
||||
}
|
||||
|
||||
td.action, input.action{
|
||||
width:5em;
|
||||
}
|
||||
|
||||
form input{
|
||||
width:50em;
|
||||
}
|
||||
|
||||
form textarea{
|
||||
width:50em;
|
||||
height:14em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
var event_id='<TMPL_VAR event_id>';
|
||||
var selectImageId='';
|
||||
<TMPL_IF .event_edited>
|
||||
$(document).ready(
|
||||
function(){
|
||||
if ($('div.error').length>0) return;
|
||||
if(comeFromCalendar()) getBack();
|
||||
}
|
||||
);
|
||||
</TMPL_IF>
|
||||
|
||||
$(document).ready(
|
||||
function(){
|
||||
$("#forms form").submit(
|
||||
function( event ) {
|
||||
event.preventDefault();
|
||||
var $form = $( this );
|
||||
var posting = $.post("notify_events.cgi", $form.serialize());
|
||||
posting.done(
|
||||
function( data ) {
|
||||
var content = $( data ).find( "#content" );
|
||||
$('#result').html(content);
|
||||
var formId=$form.attr('id');
|
||||
$('#'+formId+" .mailHeader").addClass("done");
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="result" style="display:none"> </div>
|
||||
|
||||
<div id="forms">
|
||||
<TMPL_LOOP events>
|
||||
<form id="event_<TMPL_VAR event_id>">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR series_id>">
|
||||
<input type="hidden" name="event_id" value="<TMPL_VAR event_id>">
|
||||
<input type="hidden" name="action" value="send">
|
||||
|
||||
<table id="events">
|
||||
<tr id="header_<TMPL_VAR event_id>" class="mailHeader">
|
||||
<td><b><TMPL_VAR start></b></td>
|
||||
<td><b><TMPL_VAR full_title></b> | <TMPL_IF live>live</TMPL_IF> <TMPL_IF preproduction>preproduction</TMPL_IF> <TMPL_IF playout>playout</TMPL_IF></td>
|
||||
|
||||
<TMPL_IF noRecipient>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Warning</td>
|
||||
<td><div class="error">no recipient configured at series!</div></td>
|
||||
</tr>
|
||||
|
||||
<TMPL_ELSE>
|
||||
|
||||
<td class="action"><input class="button" type="submit" name="action" value="send"></td>
|
||||
</tr>
|
||||
|
||||
<TMPL_IF mail.Subject>
|
||||
<tr>
|
||||
<td>Subject</td>
|
||||
<td class="mailSubject"><input name="subject" value="<TMPL_VAR mail.Subject>"></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF mail.To>
|
||||
<tr>
|
||||
<td>To</td>
|
||||
<td><input name="to" value="<TMPL_VAR mail.To>"></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF mail.From>
|
||||
<tr>
|
||||
<td>From</td>
|
||||
<td><TMPL_VAR mail.From></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF mail.Cc>
|
||||
<tr>
|
||||
<td>Cc</td>
|
||||
<td><input name="cc" value="<TMPL_VAR mail.Cc>"></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF mail.Reply-To>
|
||||
<tr>
|
||||
<td>Reply-To</td>
|
||||
<td><TMPL_VAR mail.Reply-To></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF mail.data>
|
||||
<tr>
|
||||
<td>Content</td>
|
||||
<td class="mailBody"><textarea name="content" ><TMPL_VAR mail.data></textarea></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
</TMPL_IF>
|
||||
</table>
|
||||
</form>
|
||||
</TMPL_LOOP>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
0
website/agenda/planung/templates/playout.html
Normal file
0
website/agenda/planung/templates/playout.html
Normal file
170
website/agenda/planung/templates/projects.html
Normal file
170
website/agenda/planung/templates/projects.html
Normal file
@@ -0,0 +1,170 @@
|
||||
<link href="css/jquery-ui-timepicker.css" type="text/css" rel="stylesheet" />
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
</script>
|
||||
|
||||
<h2><TMPL_VAR .loc.title></h2>
|
||||
|
||||
<TMPL_IF .allow.create_project>
|
||||
<div style="clear:both" class="newproject">
|
||||
<button onclick="add_project('<TMPL_VAR name>')"><TMPL_VAR .loc.button_add_project></button><br/>
|
||||
|
||||
<div id="edit_new" class="card project editor" style="clear:both;display:none">
|
||||
<form method="post">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<table>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_name></td> <td><input name="name"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_title></td> <td><input name="title"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_subtitle></td> <td><input name="subtitle"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_start_date></td> <td><input name="start_date" class="date"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_end_date></td> <td><input name="end_date" class="date"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_image></td> <td><input name="image"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_email></td> <td><input name="email"> </td></tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="buttons">
|
||||
<button onclick="cancel_edit_project('new');return false;"><TMPL_VAR .loc.button_cancel></button>
|
||||
<button type=submit name="action" value="save"><TMPL_VAR .loc.button_create></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<div style="clear:both" class="flex">
|
||||
<TMPL_LOOP projects>
|
||||
|
||||
<div class="card project">
|
||||
<!-- buttons -->
|
||||
<div>
|
||||
<div class="title"><TMPL_VAR name></div>
|
||||
<TMPL_IF .allow.update_project>
|
||||
<button onclick="edit_project('<TMPL_VAR project_id>')"
|
||||
><TMPL_VAR .loc.button_edit></button>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
|
||||
<!-- view project -->
|
||||
<div id="view_<TMPL_VAR project_id>" class="view">
|
||||
<table>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_name></td> <td colspan="2"><TMPL_VAR name> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_title></td> <td colspan="2"><TMPL_VAR title> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_subtitle></td> <td colspan="2"><TMPL_VAR subtitle> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_start_date></td> <td colspan="2"><TMPL_VAR start_date> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_end_date></td> <td colspan="2"><TMPL_VAR end_date> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_image></td> <td colspan="2"><img src="<TMPL_VAR image>"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_email></td> <td colspan="2"><TMPL_VAR email> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_studios></td>
|
||||
<td>
|
||||
<TMPL_LOOP assigned_studios>
|
||||
<TMPL_VAR name><br/>
|
||||
</TMPL_LOOP><br/>
|
||||
</td><td>
|
||||
<TMPL_IF .allow.update_project>
|
||||
<button onclick="edit_project_assignments('<TMPL_VAR project_id>')"
|
||||
style="float:left"
|
||||
><TMPL_VAR .loc.button_edit></button>
|
||||
</TMPL_IF>
|
||||
|
||||
</td></tr>
|
||||
</table>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<TMPL_IF .allow.update_project>
|
||||
<!-- update project -->
|
||||
<div id="edit_<TMPL_VAR project_id>" class="editor" style="display:none">
|
||||
<form method="post" action="projects.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>"
|
||||
id="project_<TMPL_VAR project_id>"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="pid" value="<TMPL_VAR pid>">
|
||||
<table>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_name></td> <td><input name="name" value="<TMPL_VAR name>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_title></td> <td><input name="title" value="<TMPL_VAR title>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_subtitle></td> <td><input name="subtitle" value="<TMPL_VAR subtitle>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_start_date></td><td><input class="date" name="start_date" value="<TMPL_VAR start_date>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_end_date></td> <td><input class="date" name="end_date" value="<TMPL_VAR end_date>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_image></td> <td><input name="image" value="<TMPL_VAR image>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_email></td> <td><input name="email" value="<TMPL_VAR email>"></td></tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="buttons">
|
||||
<button type=submit name="action" value="save"><TMPL_VAR .loc.button_save></button>
|
||||
</td>
|
||||
<TMPL_IF .allow.delete_project>
|
||||
<td>
|
||||
<div class="right">
|
||||
<button type=submit name="action" value="delete"
|
||||
onclick="commitForm('project_<TMPL_VAR project_id>','delete','<TMPL_VAR .loc.button_delete>');return false;"
|
||||
><TMPL_VAR .loc.button_delete></button>
|
||||
</div>
|
||||
</td>
|
||||
</TMPL_IF>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.assign_project_studio>
|
||||
<div id="assign_<TMPL_VAR project_id>" class="editor" style="display:none">
|
||||
|
||||
<!-- assign studios -->
|
||||
<div class="edit_series_members_<TMPL_VAR .series_id>" >
|
||||
<form method="post" action="projects.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="pid" value="<TMPL_VAR pid>">
|
||||
<input type="hidden" name="action" value="assign_studio">
|
||||
<select name="sid">
|
||||
<option value=""><TMPL_VAR .loc.label_select_studio></option>
|
||||
<TMPL_LOOP unassigned_studios>
|
||||
<option value="<TMPL_VAR id>"><TMPL_VAR name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
<button type="submit"><TMPL_VAR .loc.button_assign_studio></button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- unassign studios -->
|
||||
<table>
|
||||
<TMPL_LOOP assigned_studios>
|
||||
<tr>
|
||||
<td><TMPL_VAR name></td>
|
||||
<td>
|
||||
<div class="edit_series_members_<TMPL_VAR .series_id>" >
|
||||
<form method="post"
|
||||
action="projects.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="pid" value="<TMPL_VAR pid>">
|
||||
<input type="hidden" name="sid" value="<TMPL_VAR sid>">
|
||||
<input type="hidden" name="action" value="unassign_studio">
|
||||
<button type="submit"
|
||||
onclick="commitForm($(this).parent(),'unassign_studio','<TMPL_VAR .loc.button_unassign_studio>');return false;"
|
||||
><TMPL_VAR .loc.button_unassign_studio></button>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
</div>
|
||||
</TMPL_LOOP>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
56
website/agenda/planung/templates/roles.html
Normal file
56
website/agenda/planung/templates/roles.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<TMPL_INCLUDE default.html>
|
||||
|
||||
<style type="text/css">
|
||||
/*
|
||||
input.disabled{
|
||||
filter: contrast(1.0);
|
||||
}
|
||||
*/
|
||||
div#edit_roles{
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
div#edit_roles td:nth-child(1){
|
||||
max-width:14em;
|
||||
}
|
||||
|
||||
div#edit_roles .comment{
|
||||
display:block;
|
||||
color:#999;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(
|
||||
function() {
|
||||
$("input.disabled").attr('disabled', 'disabled');
|
||||
var width=960/($("input.role").length);
|
||||
$("input.role").css('width', width+'px');
|
||||
|
||||
//$("#edit_roles").height($('#content').height());
|
||||
|
||||
$('input[type="checkbox"]').click(
|
||||
function(){
|
||||
if ($(this).attr('value')=='1'){
|
||||
$(this).attr('value','0');
|
||||
}else{
|
||||
$(this).attr('value','1');
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
function add_user_role(){
|
||||
if ($('#new_user_role').css('display')=='none'){
|
||||
$('.editor').show();
|
||||
$('#add_user_role_button').html('cancel add user role');
|
||||
}else{
|
||||
$('.editor').hide();
|
||||
$('#add_user_role_button').html('add user role');
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<h2>Edit Roles</h2>
|
||||
74
website/agenda/planung/templates/selectEvent.html
Normal file
74
website/agenda/planung/templates/selectEvent.html
Normal file
@@ -0,0 +1,74 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<head>
|
||||
<script src="js/selectEvent.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="selectEvent" class="panel">
|
||||
<table>
|
||||
|
||||
<TMPL_IF selectProjectStudio>
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_project> & <TMPL_VAR .loc.label_Studio></td>
|
||||
<td>
|
||||
<select id="selectProjectStudio" onchange="updateEventSelection('<TMPL_VAR resultElemId>');return false;">
|
||||
<option value="-1_-1"><TMPL_VAR .loc.label_all></option>
|
||||
<TMPL_LOOP studios><option value="<TMPL_VAR project_id>_<TMPL_VAR id>" <TMPL_IF selected>selected="selected"</TMPL_IF> ><TMPL_VAR project_name> - <TMPL_VAR name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<input id="projectId" value="<TMPL_VAR .project_id>" style="display:none">
|
||||
<input id="studioId" value="<TMPL_VAR .studio_id>" style="display:none">
|
||||
|
||||
<TMPL_IF selectSeries>
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_series></td>
|
||||
<td>
|
||||
<select id="selectSeries" onchange="updateEventSelection('<TMPL_VAR resultElemId>');return false;">
|
||||
<option value="-1"><TMPL_VAR .loc.label_select></option>
|
||||
<TMPL_LOOP series><option value="<TMPL_VAR series_id>" <TMPL_IF selected>selected="selected"</TMPL_IF>><TMPL_VAR series_name><TMPL_IF title> - <TMPL_VAR title></TMPL_IF></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<input id="seriesId" value="<TMPL_VAR .series_id>" style="display:none">
|
||||
|
||||
<TMPL_IF selectRange>
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_filter></td>
|
||||
<td>
|
||||
<select id="year" onchange="updateEventSelection('<TMPL_VAR resultElemId>');return false;">
|
||||
<option value="-1"><TMPL_VAR .loc.label_year></option>
|
||||
<TMPL_LOOP years><option value="<TMPL_VAR year>" <TMPL_IF selected>selected="selected"</TMPL_IF>><TMPL_VAR year></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<input id="fromDate" value="<TMPL_VAR from_date>" style="display:none">
|
||||
<input id="tillDate" value="<TMPL_VAR till_date>" style="display:none">
|
||||
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_event></td>
|
||||
<td>
|
||||
<select id="eventId" onchange=selectEventAction('<TMPL_VAR resultElemId>')>
|
||||
<option value="-1"><TMPL_VAR .loc.label_select></option>
|
||||
<TMPL_LOOP events><option value="<TMPL_VAR id>"><TMPL_VAR start> - <TMPL_VAR full_title></option>
|
||||
</TMPL_LOOPS>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<TMPL_ELSE>
|
||||
missing permission to read event
|
||||
</TMPL_IF>
|
||||
</html>
|
||||
48
website/agenda/planung/templates/selectSeries.html
Normal file
48
website/agenda/planung/templates/selectSeries.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<TMPL_IF .allow.read_series>
|
||||
<head>
|
||||
<script src="js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="js/selectSeries.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="selectSeries" class="panel">
|
||||
<table>
|
||||
|
||||
<TMPL_IF selectProjectStudio>
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_project> & <TMPL_VAR .loc.label_Studio></td>
|
||||
<td>
|
||||
<select id="selectProjectStudio" onchange="updateSeriesSelection('<TMPL_VAR resultElemId>');return false;">
|
||||
<option value="-1_-1"><TMPL_VAR .loc.label_all></option>
|
||||
<TMPL_LOOP studios><option value="<TMPL_VAR project_id>_<TMPL_VAR id>" <TMPL_IF selected>selected="selected"</TMPL_IF> ><TMPL_VAR project_name> - <TMPL_VAR name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<input id="projectId" value="<TMPL_VAR .project_id>" style="display:none">
|
||||
<input id="studioId" value="<TMPL_VAR .studio_id>" style="display:none">
|
||||
|
||||
<TMPL_IF selectSeries>
|
||||
<tr>
|
||||
<td class="label"><TMPL_VAR .loc.label_series></td>
|
||||
<td>
|
||||
<select id="selectSeriesId" onchange="selectSeriesAction('<TMPL_VAR resultElemId>');return false;">
|
||||
<option value="-1"><TMPL_VAR .loc.label_select></option>
|
||||
<TMPL_LOOP series><option value="<TMPL_VAR series_id>" <TMPL_IF selected>selected="selected"</TMPL_IF>><TMPL_VAR series_name><TMPL_IF title> - <TMPL_VAR title></TMPL_IF></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<TMPL_ELSE>
|
||||
missing permission to read series
|
||||
</TMPL_IF>
|
||||
</html>
|
||||
61
website/agenda/planung/templates/series.html
Normal file
61
website/agenda/planung/templates/series.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
</script>
|
||||
|
||||
<h2><TMPL_VAR .loc.title></h2>
|
||||
|
||||
<div id="search"><input id="searchField" name="search" value="" onkeyup="searchEvents()" placeholder="<TMPL_VAR .loc.label_search>"><button id="clearSearch" onclick="clearSearch()"><TMPL_VAR .loc.label_clear_search></div>
|
||||
|
||||
<!-- create a new series -->
|
||||
<TMPL_IF .allow.create_series>
|
||||
<div style="clear:both" class="newseries">
|
||||
<button onclick="add_series('<TMPL_VAR series_name>')"><TMPL_VAR .loc.button_add_series></button>
|
||||
<div id="edit_new" class="editor" style="display:none;clear:both">
|
||||
<form method="post" action="series.cgi">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>">
|
||||
|
||||
<div class="formField">
|
||||
<div class="label"><TMPL_VAR .loc.label_name></div>
|
||||
<input name="series_name" placeholder="<TMPL_VAR .loc.label_name>">
|
||||
</div>
|
||||
|
||||
<div class="formField">
|
||||
<div class="label"><TMPL_VAR .loc.label_title></div>
|
||||
<input name="title" placeholder="<TMPL_VAR .loc.label_title>">
|
||||
</div>
|
||||
|
||||
<div class="formField">
|
||||
<button type=submit name="action" value="create"><TMPL_VAR .loc.button_create></button>
|
||||
<button onclick="cancel_edit_series('new');return false;"><TMPL_VAR .loc.button_cancel></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<div id="newSeries">
|
||||
<TMPL_LOOP newSeries>
|
||||
<div onclick="view_series_details('<TMPL_VAR series_id>','<TMPL_VAR .studio_id>','<TMPL_VAR .project_id>')">
|
||||
<b><TMPL_IF has_single_events><TMPL_VAR .loc.single_events><TMPL_ELSE><TMPL_VAR series_name></TMPL_IF></b>
|
||||
<TMPL_IF TITLE> <br> <TMPL_VAR title></TMPL_IF>
|
||||
</div>
|
||||
</TMPL_LOOP>
|
||||
</div>
|
||||
|
||||
<div style="clear:both">
|
||||
<button onclick="$('#oldSeries').slideToggle()"><TMPL_VAR .loc.button_old_series></button>
|
||||
</div>
|
||||
|
||||
<div id="oldSeries" style="display:none;">
|
||||
<TMPL_LOOP oldSeries>
|
||||
<div onclick="view_series_details('<TMPL_VAR series_id>','<TMPL_VAR .studio_id>','<TMPL_VAR .project_id>')">
|
||||
<b><TMPL_IF has_single_events><TMPL_VAR .loc.single_events><TMPL_ELSE><TMPL_VAR series_name></TMPL_IF></b>
|
||||
<TMPL_IF TITLE> <br> <TMPL_VAR title></TMPL_IF>
|
||||
</div>
|
||||
</TMPL_LOOP>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
16
website/agenda/planung/templates/status.html
Normal file
16
website/agenda/planung/templates/status.html
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
<style>
|
||||
ul.error{
|
||||
list-style-type: none;
|
||||
background:#fcc;
|
||||
padding:6px;
|
||||
}
|
||||
</style>
|
||||
<TMPL_IF errors>
|
||||
<ul class="error">
|
||||
<TMPL_LOOP errors>
|
||||
<li><TMPL_VAR error></li>
|
||||
</TMPL_LOOP>
|
||||
</ul>
|
||||
</TMPL_IF>
|
||||
|
||||
40
website/agenda/planung/templates/studio_timeslot_dates.html
Normal file
40
website/agenda/planung/templates/studio_timeslot_dates.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="js/jquery.tablesorter.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.widgets.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.scroller.js"></script>
|
||||
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<TMPL_VAR .loc.label_show_schedule>
|
||||
<table id="schedule_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th><TMPL_VAR .loc.label_from></th>
|
||||
<th></th>
|
||||
<th><TMPL_VAR .loc.label_till></th>
|
||||
<th><TMPL_VAR .loc.label_studio></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<body>
|
||||
<TMPL_LOOP dates>
|
||||
<tr class="<TMPL_IF exclude>exclude</TMPL_IF>">
|
||||
<td><TMPL_VAR start_weekday></td>
|
||||
<td><TMPL_VAR start></td>
|
||||
<td><TMPL_VAR end_weekday></td>
|
||||
<td><TMPL_VAR end></td>
|
||||
<td><TMPL_VAR studio_name></td>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</body>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
126
website/agenda/planung/templates/studio_timeslots.html
Normal file
126
website/agenda/planung/templates/studio_timeslots.html
Normal file
@@ -0,0 +1,126 @@
|
||||
<style>
|
||||
#editor div p a img {
|
||||
float:right;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
</script>
|
||||
|
||||
<!-- view timeslot schedule and dates -->
|
||||
<h2><TMPL_VAR .loc.title></h2>
|
||||
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<TMPL_IF .allow.update_schedule>
|
||||
<li><a href="#tabs-schedule"><TMPL_VAR .loc.tab_schedule></a></li>
|
||||
</TMPL_IF>
|
||||
<li><a href="#tabs-events"><TMPL_VAR .loc.tab_events></a></li>
|
||||
</ul>
|
||||
|
||||
<!-- schedule -->
|
||||
<TMPL_IF .allow.update_schedule>
|
||||
<div id="tabs-schedule">
|
||||
|
||||
<!-- edit schedule -->
|
||||
<div id="edit_schedule" class="editor">
|
||||
<div class="row">
|
||||
<div class="cell" style="width:1.3em"> <TMPL_VAR .loc.weekday> </div>
|
||||
<div class="cell" style="width:10em"> <TMPL_VAR .loc.label_start> </div>
|
||||
<div class="cell" style="width:1.3em"> <TMPL_VAR .loc.weekday> </div>
|
||||
<div class="cell" style="width:10em"> <TMPL_VAR .loc.label_end> </div>
|
||||
<div class="cell" style="width:7em"> <TMPL_VAR .loc.label_frequency> </div>
|
||||
<div class="cell" style="width:8em"> <TMPL_VAR .loc.label_update_until> </div>
|
||||
<div class="cell" style="width:7em"> <TMPL_VAR .loc.label_studio></div>
|
||||
</div>
|
||||
|
||||
<TMPL_LOOP schedule>
|
||||
<div class="row schedule" id="schedule_<TMPL_VAR schedule_id>">
|
||||
<form method="post" action="studio_timeslots.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>" id="form_schedule_<TMPL_VAR schedule_id>">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>" />
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>" />
|
||||
<input type="hidden" name="schedule_id" value="<TMPL_VAR schedule_id>" />
|
||||
<div class="cell weekday"></div>
|
||||
<div class="cell"> <input name="start" value="<TMPL_VAR start>" class="datetimepicker start"/> </div>
|
||||
<div class="cell weekday"></div>
|
||||
<div class="cell"> <input name="end" value="<TMPL_VAR end>" class="datetimepicker end"/> </div>
|
||||
<div class="cell"><!-- <input name="frequency" value="<TMPL_VAR frequency>" class="frequency" /> -->
|
||||
<select name="frequency" value="<TMPL_VAR frequency>" class="frequency">
|
||||
<option value="1"><TMPL_VAR .loc.daily></option>
|
||||
<option value="7"><TMPL_VAR .loc.weekly></option>
|
||||
<option value="14"><TMPL_VAR .loc.every_two_weeks></option>
|
||||
<option value="28"><TMPL_VAR .loc.every_month></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="cell weekday"></div>
|
||||
<div class="cell"> <input name="end_date" value="<TMPL_VAR end_date>" class="datetimepicker end_date"/> </div>
|
||||
<div class="cell">
|
||||
<select name="schedule_studio_id" class="studio">
|
||||
<TMPL_LOOP studios>
|
||||
<option value="<TMPL_VAR id>" <TMPL_IF selected>selected="selected"</TMPL_IF>><TMPL_VAR name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="cell"> <button type="submit" name="action" value="save_schedule"><TMPL_VAR .loc.button_save></button> </div>
|
||||
<TMPL_IF .allow.delete_schedule>
|
||||
<div class="cell">
|
||||
<button type="submit" name="action" value="delete_schedule"
|
||||
onclick="commitForm('form_schedule_<TMPL_VAR schedule_id>','delete_schedule','<TMPL_VAR .loc.button_delete>');return false;"
|
||||
><TMPL_VAR .loc.button_delete></button>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</form>
|
||||
</div>
|
||||
</TMPL_LOOP>
|
||||
|
||||
<!-- add schedule-->
|
||||
<div class="row">
|
||||
<form method="post" action="studio_timeslots.cgi">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>" />
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>" />
|
||||
<div class="cell weekday"></div>
|
||||
<div class="cell"> <input name="start" value="<TMPL_VAR start>" class="datetimepicker start"/> </div>
|
||||
<div class="cell weekday"></div>
|
||||
<div class="cell"> <input name="end" value="<TMPL_VAR end>" class="datetimepicker end"/> </div>
|
||||
<div class="cell"> <!--<input name="frequency" value="<TMPL_VAR frequency>" class="frequency"/> -->
|
||||
<select name="frequency" value="<TMPL_VAR frequency>" class="frequency">
|
||||
<option value="1"><TMPL_VAR .loc.daily></option>
|
||||
<option value="7"><TMPL_VAR .loc.weekly></option>
|
||||
<option value="14"><TMPL_VAR .loc.every_two_weeks></option>
|
||||
<option value="28"><TMPL_VAR .loc.every_four_weeks></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="cell weekday"></div>
|
||||
<div class="cell"> <input name="end_date" value="<TMPL_VAR end_date>" class="datetimepicker end_date"/> </div>
|
||||
<div class="cell">
|
||||
<select name="schedule_studio_id" >
|
||||
<TMPL_LOOP studios>
|
||||
<option value="<TMPL_VAR id>" <TMPL_IF selected>selected="selected"</TMPL_IF>><TMPL_VAR name></option>
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
</div>
|
||||
<TMPL_IF .allow.update_schedule>
|
||||
<div class="cell"> <button type="submit" name="action" value="save_schedule"><TMPL_VAR .loc.button_create></button> </div>
|
||||
</TMPL_IF>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- show schedule -->
|
||||
<div id="tabs-events">
|
||||
<div class="show_schedule_head"> <TMPL_VAR loc.label_select_range>
|
||||
<div id="show_date"> </div>
|
||||
</div>
|
||||
|
||||
<div id="show_schedule" class="show_schedule">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
93
website/agenda/planung/templates/studios.html
Normal file
93
website/agenda/planung/templates/studios.html
Normal file
@@ -0,0 +1,93 @@
|
||||
<h2><TMPL_VAR .loc.title></h2>
|
||||
|
||||
<TMPL_IF .allow.update_studio>
|
||||
<div style="clear:both" class="newstudio">
|
||||
<button onclick="add_studio('<TMPL_VAR name>')"><TMPL_VAR .loc.button_add_studio></button><br/>
|
||||
<div id="edit_new" class="studio editor" style="clear:both;display:none">
|
||||
<form method="post">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<table>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_name></td> <td><input name="name" ></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_description></td> <td><input name="description" ></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_location></td> <td><input name="location" ></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_stream></td> <td><input name="stream" ></td></tr>
|
||||
<!-- <tr><td class="label"><TMPL_VAR .loc.label_google_calendar></td> <td><input name="google_calendar" ></td></tr> -->
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="buttons">
|
||||
<button onclick="cancel_edit_studio('new');return false;"><TMPL_VAR .loc.button_cancel></button>
|
||||
<button type=submit name="action" value="save"><TMPL_VAR .loc.button_create></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<div style="clear:both" class="flex">
|
||||
<TMPL_LOOP studios>
|
||||
<div class="card studio">
|
||||
<div>
|
||||
<div class="title"><TMPL_VAR name></div>
|
||||
<TMPL_IF .allow.update_studio>
|
||||
<button onclick="edit_studio('<TMPL_VAR id>')"><TMPL_VAR .loc.button_edit></button>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button target="_blank"
|
||||
onclick="load('event_history.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR id>');"
|
||||
><TMPL_VAR .loc.button_show_changes></button>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
|
||||
<!-- view studio -->
|
||||
<div id="view_<TMPL_VAR id>" class="view">
|
||||
<table>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_name></td> <td><TMPL_VAR name> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_description></td> <td><TMPL_VAR description> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_location></td> <td><TMPL_VAR location> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_stream></td> <td><TMPL_VAR stream> </td></tr>
|
||||
<!--<tr><td class="label"><TMPL_VAR .loc.label_google_calendar></td> <td><TMPL_VAR google_calendar> </td></tr>-->
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<TMPL_IF .allow.update_studio>
|
||||
<!-- update studio -->
|
||||
<div id="edit_<TMPL_VAR id>" class="editor" style="display:none">
|
||||
<form method="post" id="studio_<TMPL_VAR id>">
|
||||
<input type="hidden" name="id" value="<TMPL_VAR id>">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<table>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_name></td> <td><input name="name" value="<TMPL_VAR name>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_description></td> <td><input name="description" value="<TMPL_VAR description>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_location></td> <td><input name="location" value="<TMPL_VAR location>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_stream></td> <td><input name="stream" value="<TMPL_VAR stream>"></td></tr>
|
||||
<!--<tr><td class="label"><TMPL_VAR .loc.label_>google calendar</td> <td><input name="google_calendar" value="<TMPL_VAR google_calendar>"></td></tr> -->
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="buttons">
|
||||
<button type=submit name="action" value="save"><TMPL_VAR .loc.button_save></button>
|
||||
</td>
|
||||
<td>
|
||||
<div class="right">
|
||||
<button type=submit name="action" value="delete"
|
||||
onclick="commitForm('studio_<TMPL_VAR id>','delete','<TMPL_VAR .loc.button_delete>');return false;"
|
||||
><TMPL_VAR .loc.button_delete></button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
</TMPL_LOOP>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
106
website/agenda/planung/templates/upload_audio_recordings.html
Normal file
106
website/agenda/planung/templates/upload_audio_recordings.html
Normal file
@@ -0,0 +1,106 @@
|
||||
|
||||
<TMPL_IF .allow.upload_audio_recordings>
|
||||
|
||||
<h2>
|
||||
<TMPL_VAR event.weekday_short_name>, <TMPL_VAR event.start_date_name> <TMPL_VAR event.start_time_name><br>
|
||||
<TMPL_VAR event.key><br>
|
||||
</h2>
|
||||
|
||||
<div class="panel">
|
||||
<img src="<TMPL_VAR event.icon>"><TMPL_VAR event.excerpt><br>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<TMPL_UNLESS isOver>
|
||||
<div id="progress" style="display:none;vertical-align:middle;background:#aaa;text-align:center;margin:1em;padding:1em;font-size:1em;font-weight:bold;color:#fff" >
|
||||
<div>Ich lade jetzt die Datei hoch... Pieps.</div>
|
||||
<div><img src="/agenda/image/upload/bird9.gif" /></div>
|
||||
<div>Ist das aufregend!</div>
|
||||
</div>
|
||||
|
||||
<form name="audio_recordings_upload" id="audio_recordings_upload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>" />
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>" />
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR series_id>" />
|
||||
<input type="hidden" name="event_id" value="<TMPL_VAR event_id>" />
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td>Datei</td>
|
||||
|
||||
<td><input type="file" name="upload" size="20"
|
||||
accept="audio/mp3" maxlength="2000000000"
|
||||
/></td>
|
||||
|
||||
<td colspan="2" style="text-align:right;padding-right:0.5em;" onclick="showProgress()">
|
||||
<input type="submit" name="action" value="upload" />
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_IF filename>
|
||||
<TMPL_VAR filename escape=0>"
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</TMPL_UNLESS>
|
||||
</TMPL_IF>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>action</th>
|
||||
<!--<th>id</th>-->
|
||||
<th>name</th>
|
||||
<th>size in bytes</th>
|
||||
<th>uploaded by</th>
|
||||
<th>uploaded at</th>
|
||||
</tr>
|
||||
<TMPL_LOOP audio_recordings>
|
||||
<tr>
|
||||
<td><button onclick="playAudio('<TMPL_VAR path>');return false">play</button></td>
|
||||
<!--<td><TMPL_VAR id></td>-->
|
||||
<td><TMPL_VAR path></td>
|
||||
<td><TMPL_VAR size></td>
|
||||
<td><TMPL_VAR created_by></td>
|
||||
<td><TMPL_VAR created_at></td>
|
||||
<TMPL_IF .allow.delete_audio_recordings>
|
||||
<td>
|
||||
<form method="post">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>" />
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>" />
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR series_id>" />
|
||||
<input type="hidden" name="event_id" value="<TMPL_VAR event_id>" />
|
||||
<input type="hidden" name="path" value="<TMPL_VAR path>" />
|
||||
<button type="submit" name="action" value="delete"><TMPL_VAR .loc.button_delete></button>
|
||||
</form>
|
||||
</td>
|
||||
</TMPL_IF>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</table>
|
||||
|
||||
|
||||
<!--
|
||||
|
||||
<pre>
|
||||
name: <TMPL_VAR path>
|
||||
size: <TMPL_VAR size>
|
||||
</pre>
|
||||
<TMPL_IF action>
|
||||
<TMPL_IF error>
|
||||
<div class="error" id="message"><TMPL_VAR error></div>
|
||||
<TMPL_ELSE>
|
||||
<div class="oky" id="message" style="display:none">
|
||||
<TMPL_VAR action_result>
|
||||
<TMPL_VAR filename>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</TMPL_IF>
|
||||
-->
|
||||
|
||||
</div>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
183
website/agenda/planung/templates/user_settings.html
Normal file
183
website/agenda/planung/templates/user_settings.html
Normal file
@@ -0,0 +1,183 @@
|
||||
<script type="text/javascript">
|
||||
var selectedId;
|
||||
|
||||
$(document).ready(
|
||||
function(){
|
||||
$('input.color').click(
|
||||
function(){
|
||||
selectedId=($(this).attr('id'));
|
||||
showColors();
|
||||
}
|
||||
);
|
||||
//$("#content").append(getColor(8));
|
||||
}
|
||||
);
|
||||
|
||||
/*
|
||||
function getColor(noOfColors) {
|
||||
var html = "";
|
||||
var frequency = 5 / noOfColors;
|
||||
for (var i = 0; i < noOfColors;++i) {
|
||||
r = Math.sin(frequency * i + 0) * (127) + 128;
|
||||
g = Math.sin(frequency * i + 1) * (127) + 128;
|
||||
b = Math.sin(frequency * i + 3) * (127) + 128;
|
||||
li = '<li class="color" style="background-color:rgb({r},{g},{b});"> </li>';
|
||||
li = li.replace("{r}", Math.floor(r));
|
||||
li = li.replace("{g}", Math.floor(g));
|
||||
li = li.replace("{b}", Math.floor(b));
|
||||
html = html + li;
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
||||
function showColors(){
|
||||
var colors=['00','22','44','66','88','aa','cc','ee','ff'];
|
||||
var content='';
|
||||
|
||||
for (var i in colors){
|
||||
for (var j in colors){
|
||||
var r=colors[i];
|
||||
var g=colors[colors.length-j-1];
|
||||
var b =Math.round((i-j))% colors.length;
|
||||
if(b<0)b=Math.round((j-i))% colors.length;
|
||||
b=colors[b]
|
||||
var value='#'+r+g+b;
|
||||
content+='<div class="col" value="'+value+'" style="background:'+value+';"> </div>';
|
||||
}
|
||||
content+='<br style="clear:both">'
|
||||
}
|
||||
|
||||
for (var i in colors){
|
||||
var gray=colors[colors.length-i-1];
|
||||
var value='#'+gray+gray+gray;
|
||||
content+='<div class="col" value="'+value+'" style="background:'+value+';"> </div>';
|
||||
}
|
||||
content+='<br style="clear:both">'
|
||||
|
||||
$("#colors").html(content);
|
||||
$("#colors div.col").click(
|
||||
function(){
|
||||
var color=$(this).attr("value");
|
||||
$('#'+selectedId).css('background',color);
|
||||
$('#'+selectedId).attr('value',color);
|
||||
}
|
||||
);
|
||||
}
|
||||
*/
|
||||
|
||||
function showColors(){
|
||||
var colors=[
|
||||
'#ef9a9a',
|
||||
'#f48fb1',
|
||||
'#ce93d8',
|
||||
'#b39ddb',
|
||||
'#9fa8da',
|
||||
'#90caf9',
|
||||
'#81d4fa',
|
||||
'#80deea',
|
||||
'#80cbc4',
|
||||
'#a5d6a7',
|
||||
'#c5e1a5',
|
||||
'#e6ee9c',
|
||||
'#fff59d',
|
||||
'#ffe082',
|
||||
'#ffcc80',
|
||||
'#ffab91',
|
||||
'#bcaaa4',
|
||||
'#b0bec5',
|
||||
'#bdc3c7',
|
||||
'#dde4e6',
|
||||
'#eeeeee',
|
||||
];
|
||||
|
||||
var content='';
|
||||
for (var c in colors){
|
||||
var value=colors[c];
|
||||
content+='<div class="col" value="'+value+'" style="background:'+value+';"> </div>';
|
||||
}
|
||||
content+='<br style="clear:both">'
|
||||
|
||||
$("#colors").html(content);
|
||||
$("#colors div.col").click(
|
||||
function(){
|
||||
var color=$(this).attr("value");
|
||||
$('#'+selectedId).css('background',color);
|
||||
$('#'+selectedId).attr('value',color);
|
||||
}
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
div.col {
|
||||
float:left;
|
||||
width:10px;
|
||||
height:10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h2><TMPL_VAR loc.title></h2>
|
||||
<TMPL_INCLUDE status.html>
|
||||
|
||||
<form method="post">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>">
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="max-width:10em;"><TMPL_VAR loc.label_language></td>
|
||||
<td>
|
||||
<select name="language">
|
||||
<option value="de" <TMPL_IF language_de>selected="selected"</TMPL_IF> >Deutsch</option>
|
||||
<option value="en" <TMPL_IF language_en>selected="selected"</TMPL_IF> >English</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="max-width:10em;"><TMPL_VAR loc.label_period></td>
|
||||
<td>
|
||||
<select name="period">
|
||||
<option value="7" <TMPL_IF period_7>selected="selected"</TMPL_IF> ><TMPL_VAR .loc.label_period_7></option>
|
||||
<option value="14" <TMPL_IF period_14>selected="selected"</TMPL_IF> ><TMPL_VAR .loc.label_period_14></option>
|
||||
<option value="month" <TMPL_IF period_month>selected="selected"</TMPL_IF> ><TMPL_VAR .loc.label_period_month></option>
|
||||
<option value="28" <TMPL_IF period_28>selected="selected"</TMPL_IF> ><TMPL_VAR .loc.label_period_28></option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<TMPL_LOOP colors>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_color>: <TMPL_VAR title></td>
|
||||
<td><input id="<TMPL_VAR name>" style="background:<TMPL_VAR value>" name="<TMPL_VAR name>" class="color" value="<TMPL_VAR value>"></td>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</table>
|
||||
|
||||
<div id="colors"></div>
|
||||
|
||||
<input type="hidden" name="action" value="save">
|
||||
<button onclick="$(this).submit()"><TMPL_VAR loc.button_colors_save></button>
|
||||
</form>
|
||||
|
||||
<form method="post" style="margin-top:2px">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>">
|
||||
<input type="hidden" name="action" value="save">
|
||||
<button onclick="$(this).submit()"><TMPL_VAR loc.button_colors_reset></button>
|
||||
</form>
|
||||
|
||||
|
||||
<h3 style="clear:both"><TMPL_VAR .loc.label_change_password></h3>
|
||||
<TMPL_VAR .loc.password_hint>
|
||||
<form action="users.cgi" method="post">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>">
|
||||
<input type="hidden" name="action" value="change_password">
|
||||
<table>
|
||||
<tr> <td><TMPL_VAR .loc.label_password></td> <td><input name="user_password" value="<TMPL_VAR password>"></td> </tr>
|
||||
<tr> <td><TMPL_VAR .loc.label_password2></td><td><input name="user_password2" value="<TMPL_VAR password2>"></td> </tr>
|
||||
</table>
|
||||
<button onclick="$(this).submit()"><TMPL_VAR loc.button_change_password></button>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
67
website/agenda/planung/templates/user_stats.html
Normal file
67
website/agenda/planung/templates/user_stats.html
Normal file
@@ -0,0 +1,67 @@
|
||||
<script src="js/jquery.tablesorter.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.widgets.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.scroller.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(
|
||||
function(){
|
||||
$('table#user_stats_table').tablesorter({
|
||||
widgets: ["filter"],
|
||||
usNumberFormat : false
|
||||
});
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
div.col {
|
||||
float:left;
|
||||
width:10px;
|
||||
height:10px;
|
||||
}
|
||||
table#user_stats_table input{
|
||||
max-width:6em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h2><TMPL_VAR loc.title></h2>
|
||||
<hr>
|
||||
<TMPL_INCLUDE status.html>
|
||||
|
||||
<form method="post">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>">
|
||||
</form>
|
||||
|
||||
<table id="user_stats_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><TMPL_VAR loc.label_user></td>
|
||||
<th><TMPL_VAR loc.label_score></td>
|
||||
<th><TMPL_VAR loc.label_modified_at></td>
|
||||
<th><TMPL_VAR loc.label_create_events></td>
|
||||
<th><TMPL_VAR loc.label_update_events></td>
|
||||
<th><TMPL_VAR loc.label_delete_events></td>
|
||||
<th><TMPL_VAR loc.label_create_series></td>
|
||||
<th><TMPL_VAR loc.label_update_series></td>
|
||||
<th><TMPL_VAR loc.label_delete_series></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<TMPL_LOOP user_stats>
|
||||
<tr>
|
||||
<td><TMPL_VAR user></td>
|
||||
<td><TMPL_VAR score></td>
|
||||
<td><TMPL_VAR modified_at></td>
|
||||
<td><TMPL_VAR create_events></td>
|
||||
<td><TMPL_VAR update_events></td>
|
||||
<td><TMPL_VAR delete_events></td>
|
||||
<td><TMPL_VAR create_series></td>
|
||||
<td><TMPL_VAR update_series></td>
|
||||
<td><TMPL_VAR delete_series></td>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
221
website/agenda/planung/templates/users.html
Normal file
221
website/agenda/planung/templates/users.html
Normal file
@@ -0,0 +1,221 @@
|
||||
|
||||
<style type="text/css">
|
||||
#content div.label{
|
||||
width:10em;
|
||||
padding:0;
|
||||
margin:0;
|
||||
color:#555;
|
||||
}
|
||||
|
||||
#content div.user{
|
||||
border:1px solid gray;
|
||||
border-radius:1em;
|
||||
margin:1em;
|
||||
width:30em;
|
||||
float:left;
|
||||
}
|
||||
|
||||
#content .disabled{
|
||||
color:#999;
|
||||
}
|
||||
|
||||
|
||||
#content div.editor div.right{
|
||||
float:right;
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
#content div.editor div.buttons{
|
||||
text-align:center;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
#content div.editor div.buttons button,
|
||||
#content div.editor div.buttons input{
|
||||
margin-left:1em;
|
||||
}
|
||||
|
||||
|
||||
#content table td{
|
||||
padding:6px;
|
||||
margin:0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
function edit_user(name){
|
||||
if ($('#edit_'+name).css('display')=='none'){
|
||||
$('.view_'+name).addClass('disabled');
|
||||
$('#edit_'+name).show();
|
||||
$('#edit_roles_'+name).hide();
|
||||
$('#view_roles_'+name).show();
|
||||
}else{
|
||||
$('#edit_'+name).hide();
|
||||
$('.view_'+name).removeClass('disabled');
|
||||
$('#edit_roles_'+name).hide();
|
||||
$('#view_roles_'+name).show();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function add_user(){
|
||||
$('.editor').hide();
|
||||
$('#edit_new').show();
|
||||
return false;
|
||||
}
|
||||
function cancel_edit_user(name){
|
||||
edit_user(name)
|
||||
return false;
|
||||
}
|
||||
|
||||
function edit_roles(name){
|
||||
if ($('#edit_roles_'+name).css('display')=='none'){
|
||||
$('#edit_'+name).hide();
|
||||
$('.view_'+name).removeClass('disabled');
|
||||
$('#view_roles_'+name).hide();
|
||||
$('#edit_roles_'+name).show();
|
||||
}else{
|
||||
$('#edit_'+name).hide();
|
||||
$('.view_'+name).removeClass('disabled');
|
||||
$('#edit_roles_'+name).hide();
|
||||
$('#view_roles_'+name).show();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<h2><TMPL_VAR .loc.title></h2>
|
||||
<TMPL_INCLUDE status.html>
|
||||
|
||||
<TMPL_IF allow.create_user>
|
||||
<div style="clear:both" class="newuser">
|
||||
<button onclick="add_user('<TMPL_VAR name>')"><TMPL_VAR .loc.button_add_user></button>
|
||||
<div id="edit_new" class="user editor" style="display:none">
|
||||
<form method="post">
|
||||
<table>
|
||||
<tr> <td><TMPL_VAR .loc.label_name></td> <td><input name="user_name" value="<TMPL_VAR user_name>"></td> </tr>
|
||||
<tr> <td><TMPL_VAR .loc.label_full_name></td> <td><input name="user_full_name" value="<TMPL_VAR user_full_name>"></td> </tr>
|
||||
<tr> <td><TMPL_VAR .loc.label_email></td> <td><input name="user_email" value="<TMPL_VAR user_email>"></td> </tr>
|
||||
<tr> <td><TMPL_VAR .loc.label_password></td> <td><input name="user_password" value="<TMPL_VAR password>"></td> </tr>
|
||||
<tr> <td><TMPL_VAR .loc.label_password2></td> <td><input name="user_password2" value="<TMPL_VAR password2>"></td> </tr>
|
||||
<tr> <td class="buttons" colspan="3">
|
||||
<button onclick="cancel_edit_user('new');return false;"><TMPL_VAR .loc.button_cancel></button>
|
||||
<button type=submit name="action" value="save"><TMPL_VAR .loc.button_create_user></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<table class="table">
|
||||
<TMPL_LOOP users>
|
||||
|
||||
<tr id="view_<TMPL_VAR id>" class="list<TMPL_IF disabled> disabled</TMPL_IF>">
|
||||
<td>
|
||||
<div style="float:left;font-weight:bold;"><TMPL_VAR name></div>
|
||||
</td>
|
||||
|
||||
<td class="view_<TMPL_VAR id>">
|
||||
<TMPL_VAR full_name>
|
||||
</td>
|
||||
|
||||
<TMPL_IF showMail>
|
||||
<td class="view_<TMPL_VAR id>">
|
||||
<TMPL_VAR email>
|
||||
</td>
|
||||
</TMPL_IF>
|
||||
|
||||
<td class="view_<TMPL_VAR id>">
|
||||
<div id="view_roles_<TMPL_VAR id>">
|
||||
<TMPL_LOOP user_roles><TMPL_VAR role><br/></TMPL_LOOP>
|
||||
</div>
|
||||
|
||||
<TMPL_IF allow.update_user_role>
|
||||
<div id="edit_roles_<TMPL_VAR id>" class="card list editor" style="display:none">
|
||||
<form method="post">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<TMPL_LOOP roles>
|
||||
<input type="checkbox"
|
||||
name="role_<TMPL_VAR id>"
|
||||
<TMPL_IF assigned>checked="checked"</TMPL_IF>
|
||||
><TMPL_VAR role><br>
|
||||
</TMPL_LOOP>
|
||||
<button type="submit" name="action" value="assign"><TMPL_VAR .loc.button_assign_role></button>
|
||||
<input type="hidden" name="user_id" value="<TMPL_VAR id>">
|
||||
<input class="studio_id" type="hidden" name="studio_id" value="<TMPL_VAR studio_id>">
|
||||
<input class="project_id" type="hidden" name="project_id" value="<TMPL_VAR project_id>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<TMPL_IF allow.update_user>
|
||||
<button onclick="edit_user('<TMPL_VAR id>')"><TMPL_VAR .loc.button_edit_user></button>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF allow.update_user_role>
|
||||
<button onclick="edit_roles('<TMPL_VAR id>')"><TMPL_VAR .loc.button_edit_roles></button>
|
||||
</TMPL_IF>
|
||||
<!-- </div> -->
|
||||
</td>
|
||||
</tr>
|
||||
<!--</div>-->
|
||||
|
||||
<TMPL_IF allow.update_user>
|
||||
<tr id="edit_<TMPL_VAR id>" class="list editor" style="display:none">
|
||||
<td colspan="5">
|
||||
<div class="card">
|
||||
<form method="post" id="user_<TMPL_VAR id>">
|
||||
<table>
|
||||
|
||||
<tr> <td><TMPL_VAR .loc.label_name></td> <td><TMPL_VAR name></td></tr>
|
||||
<tr> <td><TMPL_VAR .loc.label_full_name></td> <td><input name="user_full_name" value="<TMPL_VAR full_name>"></td></tr>
|
||||
<TMPL_if .allow.read_user>
|
||||
<tr> <td><TMPL_VAR .loc.label_email></td> <td><input name="user_email" value="<TMPL_VAR email>"></td></tr>
|
||||
</TMPL_IF>
|
||||
<tr> <td><TMPL_VAR .loc.label_disabled></td>
|
||||
<td>
|
||||
<TMPL_IF allow.disable_user>
|
||||
<input type="checkbox" name="disabled" value="1" <TMPL_IF disabled>checked="checked"</TMPL_IF> >
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="buttons" colspan="2">
|
||||
<input type="hidden" name="user_id" value="<TMPL_VAR id>">
|
||||
<button type=submit name="action" value="save"><TMPL_VAR .loc.button_save_user></button>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
|
||||
<TMPL_IF allow.delete_user>
|
||||
<div class="right">
|
||||
<button type=submit name="action" value="delete"
|
||||
onclick="commitForm('user_<TMPL_VAR id>','delete','<TMPL_VAR .loc.button_delete_user>');return false;"
|
||||
><TMPL_VAR .loc.button_delete_user></div>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
|
||||
</TMPL_LOOP>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user