[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14493] php templates to xsl
From: |
Saul |
Subject: |
[Fmsystem-commits] [14493] php templates to xsl |
Date: |
Fri, 27 Nov 2015 00:29:09 +0000 |
Revision: 14493
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14493
Author: psaul
Date: 2015-11-27 00:29:08 +0000 (Fri, 27 Nov 2015)
Log Message:
-----------
php templates to xsl
Modified Paths:
--------------
branches/dev-syncromind/activitycalendarfrontend/inc/class.uiactivity.inc.php
Added Paths:
-----------
branches/dev-syncromind/activitycalendarfrontend/js/activitycalendarfrontend/
branches/dev-syncromind/activitycalendarfrontend/js/activitycalendarfrontend/activity_new.js
branches/dev-syncromind/activitycalendarfrontend/js/activitycalendarfrontend/activity_new_step_1.js
branches/dev-syncromind/activitycalendarfrontend/templates/activity_edit.xsl
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity.xsl
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity_new.xsl
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity_new_step_1.xsl
branches/dev-syncromind/activitycalendarfrontend/templates/base/app_data.xsl
branches/dev-syncromind/activitycalendarfrontend/templates/base/images/
branches/dev-syncromind/activitycalendarfrontend/templates/base/images/hjelp.gif
Modified:
branches/dev-syncromind/activitycalendarfrontend/inc/class.uiactivity.inc.php
===================================================================
---
branches/dev-syncromind/activitycalendarfrontend/inc/class.uiactivity.inc.php
2015-11-27 00:28:04 UTC (rev 14492)
+++
branches/dev-syncromind/activitycalendarfrontend/inc/class.uiactivity.inc.php
2015-11-27 00:29:08 UTC (rev 14493)
@@ -133,7 +133,30 @@
$activity->set_organization_id($o_id);
$activity->set_description($organization->get_description());
$activity->set_contact_persons($pers);
+
+ self::add_javascript('activitycalendarfrontend',
'activitycalendarfrontend', 'activity_new.js');
+// self::render_template_xsl(
+// 'activity_new',
+// array(
+// 'activity' => $activity,
+// 'new_organization' => false,
+// 'organization' => $organization,
+// 'contact1' => $persons[0],
+// 'arenas' => $arenas,
+// 'buildings' => $buildings,
+// 'categories' => $categories,
+// 'targets' => $targets,
+// 'districts' => $districts,
+// 'offices' => $offices,
+// 'editable' => true,
+// 'message' => isset($message) ? $message :
phpgw::get_var('message'),
+// 'error' => isset($error) ? $error :
phpgw::get_var('error'),
+// 'helpImg' =>
$GLOBALS['phpgw']->common->image('activitycalendarfrontend', 'hjelp.gif'),
+// 'ajaxURL' => $ajaxUrl
+// )
+// );
+
$this->render('activity_new.php', array
(
'activity' => $activity,
@@ -352,6 +375,17 @@
);
}
} else {
+ self::add_javascript('activitycalendarfrontend',
'activitycalendarfrontend', 'activity_new_step_1.js');
+
+// self::render_template_xsl(
+// 'activity_new_step_1',
+// array(
+// 'ajaxURL' => $ajaxUrl,
+// 'helpImg' =>
$GLOBALS['phpgw']->common->image('activitycalendarfrontend', 'hjelp.gif'),
+// 'organizations' => (array)$organizations
+// )
+// );
+
return $this->render('activity_new_step_1.php', array
(
'organizations' => $organizations,
Added:
branches/dev-syncromind/activitycalendarfrontend/js/activitycalendarfrontend/activity_new.js
===================================================================
---
branches/dev-syncromind/activitycalendarfrontend/js/activitycalendarfrontend/activity_new.js
(rev 0)
+++
branches/dev-syncromind/activitycalendarfrontend/js/activitycalendarfrontend/activity_new.js
2015-11-27 00:29:08 UTC (rev 14493)
@@ -0,0 +1,287 @@
+$(document).ready(function(){
+ var text = document.getElementById("displayText");
+ //ele.hide();
+ $("#toggleText").hide();
+ text.innerHTML = "Ikke i listen? Registrer nytt lokale";
+});
+
+function toggle() {
+ var ele = document.getElementById("toggleText");
+ var text = document.getElementById("displayText");
+ var arenahidden = document.getElementById("new_arena_hidden");
+ if(ele.style.display == "block") {
+ ele.style.display = "none";
+ text.innerHTML = "Registrer nytt lokale";
+ }
+ else {
+ ele.style.display = "block";
+ text.innerHTML = "";
+ arenahidden.value="new_arena";
+ }
+}
+
+function showhide(id)
+{
+ if(id == "org")
+ {
+ document.getElementById('orgf').style.display = "block";
+ document.getElementById('no_orgf').style.display = "none";
+ }
+ else
+ {
+ document.getElementById('orgf').style.display = "none";
+ document.getElementById('no_orgf').style.display = "block";
+ }
+}
+
+//function get_address_search()
+//{
+// var address = document.getElementById('address').value;
+// var div_address = document.getElementById('address_container');
+// div_address.style.display="block";
+//
+// //url =
"/aktivby/registreringsskjema/ny/index.php?menuaction=activitycalendarfrontend.uiactivity.get_address_search&phpgw_return_as=json&search="
+ address;
+// url = "<?php echo $ajaxURL
?>index.php?menuaction=activitycalendarfrontend.uiactivity.get_address_search&phpgw_return_as=json&search="
+ address;
+//
+// var divcontent_start = "<select name=\"address\" id=\"address\"
size=\"5\" onChange='setAddressValue(this)'>";
+// var divcontent_end = "</select>";
+//
+// var callback = {
+// success: function(response){
+// div_address.innerHTML = divcontent_start +
JSON.parse(response.responseText) + divcontent_end;
+// },
+// failure: function(o) {
+// alert("AJAX doesn't work"); //FAILURE
+// }
+// }
+// var trans = YAHOO.util.Connect.asyncRequest('GET', url, callback, null);
+//}
+
+var current_address = "";
+function get_address_search()
+{
+ var address = $('#address').val();
+ var div_address = $('#addess_container');
+
+ var url = phpGWLink('activitycalendarfrontend/', {menuaction:
'activitycalendarfrontend.uiactivity.get_address_search', search: address},
true);
+ var attr = [{name: 'name', value: 'address'}, {name: 'id', value:
'address'}, {name: 'size', value: '5'}, {name: 'onChange', value:
'setAddressValue(this)'}];
+
+ div_address.hide();
+
+ if (address && address != current_address) {
+ div_address.show();
+ populateSelect_activityCalendar(url, div_address, attr);
+ current_address = address;
+ }
+}
+
+//function get_address_search_arena()
+//{
+// var address = document.getElementById('arena_address').value;
+// var div_address = document.getElementById('arena_address_container');
+// div_address.style.display="block";
+//
+// //url =
"/aktivby/registreringsskjema/ny/index.php?menuaction=activitycalendarfrontend.uiactivity.get_address_search&phpgw_return_as=json&search="
+ address;
+// url = "<?php echo $ajaxURL
?>index.php?menuaction=activitycalendarfrontend.uiactivity.get_address_search&phpgw_return_as=json&search="
+ address;
+//
+// var divcontent_start = "<select name=\"arena_address_select\"
id=\"arena_address\" size=\"5\" onChange='setAddressValue(this)'>";
+// var divcontent_end = "</select>";
+//
+// var callback = {
+// success: function(response){
+// div_address.innerHTML = divcontent_start +
JSON.parse(response.responseText) + divcontent_end;
+// },
+// failure: function(o) {
+// alert("AJAX doesn't work"); //FAILURE
+// }
+// }
+// var trans = YAHOO.util.Connect.asyncRequest('GET', url, callback, null);
+//}
+
+var current_arena_address = "";
+function get_address_search_arena()
+{
+ var address = $('#arena_address').val();
+ var div_address = $('#arena_address_container');
+
+ var url = phpGWLink('activitycalendarfrontend/', {menuaction:
'activitycalendarfrontend.uiactivity.get_address_search', search: address},
true);
+ var attr = [{name: 'name', value: 'arena_address_select'}, {name: 'id',
value: 'arena_address'}, {name: 'size', value: '5'}, {name: 'onChange', value:
'setAddressValue(this)'}];
+
+ div_address.hide();
+
+ if (address && address != current_arena_address) {
+ div_address.show();
+ populateSelect_activityCalendar(url, div_address, attr);
+ current_arena_address = address;
+ }
+}
+
+//function get_address_search_cp2()
+//{
+// var address = document.getElementById('contact2_address').value;
+// var div_address = document.getElementById('contact2_address_container');
+// div_address.style.display="block";
+//
+// //url =
"/aktivby/registreringsskjema/ny/index.php?menuaction=activitycalendarfrontend.uiactivity.get_address_search&phpgw_return_as=json&search="
+ address;
+// url = "<?php echo $ajaxURL
?>index.php?menuaction=activitycalendarfrontend.uiactivity.get_address_search&phpgw_return_as=json&search="
+ address;
+//
+// var divcontent_start = "<select name=\"contact2_address_select\"
id=\"address_cp2\" size=\"5\" onChange='setAddressValue(this)'>";
+// var divcontent_end = "</select>";
+//
+// var callback = {
+// success: function(response){
+// div_address.innerHTML = divcontent_start +
JSON.parse(response.responseText) + divcontent_end;
+// },
+// failure: function(o) {
+// alert("AJAX doesn't work"); //FAILURE
+// }
+// }
+// var trans = YAHOO.util.Connect.asyncRequest('GET', url, callback, null);
+//}
+
+var current_address_search_cp2 = "";
+function get_address_search_cp2()
+{
+ var address = $('contact2_address');
+ var div_address = $('#address_container');
+
+ var url = phpGWLink('activitycalendarfrontend/', {menuaction:
'activitycalendarfrontend.uiactivity.get_address_search', search: address},
true);
+ var attr = [{name: 'name', value: 'contact2_address_select'}, {name: 'id',
value: 'address_cp2'}, {name: 'size', value: '5'}, {name: 'onChange', value:
'setAddressValue(this)'}];
+
+ div_address.hide();
+
+ if (address && address != current_address_search_cp2) {
+ div_address.show();
+ populateSelect_activityCalendar(url, div_address, attr);
+ current_address_search_cp2 = address;
+ }
+}
+
+function setAddressValue(field)
+{
+ if(field.name == 'contact2_address_select')
+ {
+ var address = document.getElementById('contact2_address');
+ var div_address =
document.getElementById('contact2_address_container');
+
+ address.value=field.value;
+ div_address.style.display="none";
+ }
+ else if(field.name == 'arena_address_select')
+ {
+ var address = document.getElementById('arena_address');
+ var div_address = document.getElementById('arena_address_container');
+
+ address.value=field.value;
+ div_address.style.display="none";
+ }
+ else
+ {
+ var address = document.getElementById('address');
+ var div_address = document.getElementById('address_container');
+
+ address.value=field.value;
+ div_address.style.display="none";
+ }
+}
+
+function allOK()
+{
+ if(document.getElementById('title').value == null ||
document.getElementById('title').value == '')
+ {
+ alert("Navn på aktivitet må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('description').value == null ||
document.getElementById('description').value == '')
+ {
+ alert("Beskrivelse må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('description').value.length > 254)
+ {
+ alert("Beskrivelse kan maksimalt være 255 tegn!");
+ return false;
+ }
+ if(document.getElementById('category').value == null ||
document.getElementById('category').value == 0)
+ {
+ alert("Kategori må fylles ut!");
+ return false;
+ }
+ var malgrupper = document.getElementsByName('target[]');
+ var malgruppe_ok = false;
+ for(i=0;i<malgrupper.length;i++)
+ {
+ if(!malgruppe_ok)
+ {
+ if(malgrupper[i].checked)
+ {malgruppe_ok = true;}
+ }
+ }
+ if(!malgruppe_ok)
+ {
+ alert("Målgruppe må fylles ut!");
+ return false;
+ }
+ if((document.getElementById('internal_arena_id').value == null ||
document.getElementById('internal_arena_id').value == 0) &&
(document.getElementById('new_arena_hidden').value==null ||
document.getElementById('new_arena_hidden').value==''))
+ {
+ alert("Lokale må fylles ut!");
+ return false;
+ }
+ var distrikter = document.getElementsByName('district');
+ var distrikt_ok = false;
+ for(i=0;i<distrikter.length;i++)
+ {
+ if(!distrikt_ok)
+ {
+ if(distrikter[i].checked)
+ {distrikt_ok = true;}
+ }
+ }
+ if(!distrikt_ok)
+ {
+ alert("Bydel må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('time').value == null ||
document.getElementById('time').value == '')
+ {
+ alert("Dag og tid må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('contact_name').value == null ||
document.getElementById('contact_name').value == '')
+ {
+ alert("Navn på kontaktperson må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('contact_phone').value == null ||
document.getElementById('contact_phone').value == '')
+ {
+ alert("Telefonnummer til kontaktperson må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('contact_phone').value != null &&
document.getElementById('contact_phone').value.length < 8)
+ {
+ alert("Telefonnummer må inneholde minst 8 siffer!");
+ return false;
+ }
+ if(document.getElementById('contact_mail').value == null ||
document.getElementById('contact_mail').value == '')
+ {
+ alert("E-postadresse til kontaktperson må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('contact_mail2').value == null ||
document.getElementById('contact_mail2').value == '')
+ {
+ alert("Begge felter for E-post må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('contact_mail').value !=
document.getElementById('contact_mail2').value)
+ {
+ alert("E-post må være den samme i begge felt!");
+ return false;
+ }
+ if(document.getElementById('office').value == null ||
document.getElementById('office').value == 0)
+ {
+ alert("Hovedansvarlig kulturkontor må fylles ut!");
+ return false;
+ }
+ else
+ return true;
+}
\ No newline at end of file
Added:
branches/dev-syncromind/activitycalendarfrontend/js/activitycalendarfrontend/activity_new_step_1.js
===================================================================
---
branches/dev-syncromind/activitycalendarfrontend/js/activitycalendarfrontend/activity_new_step_1.js
(rev 0)
+++
branches/dev-syncromind/activitycalendarfrontend/js/activitycalendarfrontend/activity_new_step_1.js
2015-11-27 00:29:08 UTC (rev 14493)
@@ -0,0 +1,171 @@
+ $(document).ready(function(){
+ var ele = document.getElementById("toggleText3");
+ var text = document.getElementById("displayText3");
+ //ele.hide();
+ $("#toggleText3").hide();
+ text.innerHTML = "Ikke i listen? Registrer ny organisasjon";
+ });
+
+ $(function(){
+ $("#displayText3").click(function(){
+ var ele = document.getElementById("toggleText3");
+ var org_id =
document.getElementById("organization_id_hidden");
+ var text = document.getElementById("displayText3");
+ $("#toggleText3").show();
+ text.innerHTML = "";
+ org_id.value = "new_org";
+ })
+ });
+ function toggle() {
+ var ele = document.getElementById("toggleText");
+ var text = document.getElementById("displayText");
+ if(ele.style.display == "block") {
+ ele.style.display = "none";
+ text.innerHTML = "Registrer nytt lokale";
+ }
+ else {
+ ele.style.display = "block";
+ text.innerHTML = "(X)";
+ }
+ }
+ function toggle2() {
+ var ele = document.getElementById("toggleText2");
+ var text = document.getElementById("displayText2");
+ if(ele.style.display == "block") {
+ ele.style.display = "none";
+ text.innerHTML = "Legg til alternativ kontaktperson";
+ }
+ else {
+ ele.style.display = "block";
+ text.innerHTML = "(X)";
+ }
+ }
+ function toggle3() {
+ var ele = document.getElementById("toggleText3");
+ var org_id = document.getElementById("organization_id_hidden");
+ var text = document.getElementById("displayText3");
+ if(ele.style.display == "block") {
+ ele.style.display = "none";
+ text.innerHTML = "Registrer ny organisasjon";
+ }
+ else {
+ ele.style.display = "block";
+ ele.style.visibility = "visible";
+ text.innerHTML = "";
+ org_id.value = "new_org";
+ }
+ }
+
+ function toggle4() {
+ var ele = document.getElementById("toggleText3");
+ var org_id = document.getElementById("organization_id_hidden");
+ var text = document.getElementById("displayText3");
+ if(ele.style.display == "block") {
+ document.getElementById("toggleText3").style.display =
"none";
+ text.innerHTML = "Registrer ny organisasjon";
+ }
+ else {
+ document.getElementById("toggleText3").style.display =
"block";
+ document.getElementById("toggleText3").style.visibility
= "visible";
+ text.innerHTML = "";
+ org_id.value = "new_org";
+ }
+ }
+ function showhide(id)
+ {
+ if(id == "org")
+ {
+ document.getElementById('orgf').style.display = "block";
+ document.getElementById('no_orgf').style.display =
"none";
+ }
+ else
+ {
+ document.getElementById('orgf').style.display = "none";
+ document.getElementById('no_orgf').style.display =
"block";
+ }
+ }
+
+ var current_address = "";
+ function get_address_search()
+ {
+ var address = $('#address').val();
+ var div_address = $('#address_container');
+
+ var url = phpGWLink('activitycalendarfrontend/', {menuaction:
'activitycalendarfrontend.uiactivity.get_address_search', search: address},
true);
+ var attr = [{name: 'name', value: 'address_select'}, {name: 'id',
value: 'address_select'}, {name: 'size', value: '5'}, {name: 'onChange', value:
'setAddressValue(this)'}];
+
+ div_address.hide();
+
+ if (address && address != current_address) {
+ div_address.show();
+ populateSelect_activityCalendar(url, div_address, attr);
+ current_address = address;
+ }
+ }
+
+ function setAddressValue(field)
+ {
+ var address = document.getElementById('address');
+ var div_address = document.getElementById('address_container');
+ if (field.value && field.value != 0) {
+ address.value = field.value;
+ } else {
+ address.value = "";
+ }
+ div_address.style.display="none";
+ }
+
+
+ function isOK()
+ {
+ if(document.getElementById('organization_id_hidden').value ==
null || document.getElementById('organization_id_hidden').value == ''){
+ if(document.getElementById('organization_id').value ==
null || document.getElementById('organization_id').value == '')
+ {
+ alert("Du må velge om aktiviteten skal knyttes
mot en eksisterende\norganisasjon, eller om det skal registreres en ny
organisasjon!");
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
+ if(document.getElementById('orgname').value == null ||
document.getElementById('orgname').value == '')
+ {
+ alert("Organisasjonsnavn må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('org_contact1_name').value == null
|| document.getElementById('org_contact1_name').value == '')
+ {
+ alert("Navn på kontaktperson må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('org_contact1_phone').value == null
|| document.getElementById('org_contact1_phone').value == '')
+ {
+ alert("Telefonnummer til kontaktperson må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('org_contact1_phone').value != null
&& document.getElementById('org_contact1_phone').value.length < 8)
+ {
+ alert("Telefonnummer må inneholde minst 8 siffer!");
+ return false;
+ }
+ if(document.getElementById('org_contact1_mail').value == null
|| document.getElementById('org_contact1_mail').value == '')
+ {
+ alert("E-post for kontaktperson må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('org_contact2_mail').value == null
|| document.getElementById('org_contact2_mail').value == '')
+ {
+ alert("Begge felter for E-post må fylles ut!");
+ return false;
+ }
+ if(document.getElementById('org_contact1_mail').value !=
document.getElementById('org_contact2_mail').value)
+ {
+ alert("E-post må være den samme i begge felt!");
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
\ No newline at end of file
Added:
branches/dev-syncromind/activitycalendarfrontend/templates/activity_edit.xsl
===================================================================
---
branches/dev-syncromind/activitycalendarfrontend/templates/activity_edit.xsl
(rev 0)
+++
branches/dev-syncromind/activitycalendarfrontend/templates/activity_edit.xsl
2015-11-27 00:29:08 UTC (rev 14493)
@@ -0,0 +1,53 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl">
+ <div>
+ <div id="details">
+ <xsl:choose>
+ <xsl:when test="message">
+ <div class="success">
+ <xsl:value-of select="message" />
+ </div>
+ </xsl:when>
+ <xsl:when test="error">
+ <div class="error">
+ <xsl:value-of select="error" />
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ </div>
+ <div class="pageTop">
+ <h1><xsl:value-of select="php:function('lang', 'activity')" /></h1>
+ <div>
+ <xsl:value-of select="php:function('lang', 'required_fields')"
/>
+ </div>
+ </div>
+ <form action="" method="post" name="form" id="form">
+ <input type="hidden" name="id">
+ <xsl:attribute name="value">
+
+ </xsl:attribute>
+ </input>
+ <dl class="proplist-col">
+ <fieldset>
+ <xsl:attributed name="title">
+ <xsl:value-of select="php:function('lang', 'what')" />
+ </xsl:attributed>
+ <legend>Hva</legend>
+ <dt>
+ <label for="title">
+ <xsl:value-of select="php:function('lang',
'activity_title')" /> (*)
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_title')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}">
+ </a>
+ </label>
+ </dt>
+ <dd>
+
+ </dd>
+ </fieldset>
+ </dl>
+ </form>
+ </div>
+</xsl:template>
\ No newline at end of file
Added:
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity.xsl
===================================================================
---
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity.xsl
(rev 0)
+++
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity.xsl
2015-11-27 00:29:08 UTC (rev 14493)
@@ -0,0 +1,154 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl">
+ <div>
+ <div id="details">
+ <xsl:choose>
+ <xsl:when test="message">
+ <div class="success">
+ <xsl:value-of select="message" />
+ </div>
+ </xsl:when>
+ <xsl:when test="error">
+ <div class="error">
+ <xsl:value-of select="error" />
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ </div>
+ <div class="pageTop">
+ <h1><xsl:value-of select="php:function('lang', 'activity')" /></h1>
+ </div>
+ <form action="" method="post" name="form" id="form">
+ <input type="hidden" name="id">
+ <xsl:attributed name="value">
+
+ </xsl:attributed>
+ </input>
+ <dl class="proplist-col">
+ <div class="form-buttons">
+ <xsl:if test="change_request">
+ <input type="submit" name="activity_ok">
+ <xsl:attribute name="value">
+ <xsl:value-of select="php:function('lang',
'activity_ok')" />
+ </xsl:attribute>
+ </input>
+ <input type="submit" name="change_request">
+ <xsl:attribute name="value">
+ <xsl:value-of select="php:function('lang',
'change_activity')" />
+ </xsl:attribute>
+ </input>
+ </xsl:if>
+ </div>
+ <fieldset title="Hva">
+ <legend>Hva</legend>
+ <dt>
+ <label for="title"><xsl:value-of
select="php:function('lang', 'activity_title')" /></label>
+ </dt>
+ <dd>
+
+ </dd>
+ <dt>
+ <label for="description"><xsl:value-of
select="php:function('lang', 'description')" /></label>
+ </dt>
+ <dd>
+
+ </dd>
+ <dt>
+ <label for="category"><xsl:value-of
select="php:function('lang', 'category')" /></label>
+ </dt>
+ <dd>
+
+ </dd>
+ </fieldset>
+ <fieldset id="hvem">
+ <legend>For hvem</legend>
+ <dt>
+ <label for="target"><xsl:value-of
select="php:function('lang', 'target')" /></label>
+ </dt>
+ <dd>
+
+ </dd>
+ <dt>
+ <input type="checkbox" name="special_adaptation"
id="special_adaptation" disabled="disabled" />
+ <label for="special_adaptation"><xsl:value-of
select="php:function('lang', 'special_adaptation')" /></label>
+ </dt>
+ </fieldset>
+ <fieldset title="hvor">
+ <legend>Hvor og når</legend>
+ <xsl:if test="">
+ <dt>
+ <label for="arena"><xsl:value-of
select="php:function('lang', 'building')" /></label>
+ </dt>
+ <dd>
+
+ </dd>
+ </xsl:if>
+ <xsl:if test="">
+ <dt>
+ <label for="arena"><xsl:value-of
select="php:function('lang', 'arena')" /></label>
+ </dt>
+ <dd>
+
+ </dd>
+ </xsl:if>
+ <dt>
+ <label for="district"><xsl:value-of
select="php:function('lang', 'district')" /></label>
+ </dt>
+ <dd>
+
+ </dd>
+ <dt>
+ <label for="time"><xsl:value-of
select="php:function('lang', 'time')" /></label>
+ </dt>
+ <dd>
+
+ </dd>
+ </fieldset>
+ <fieldset id="arr">
+ <legend>Arrangør</legend>
+ <dd>
+ <xsl:if test="">
+ <a></a>
+ </xsl:if>
+ </dd><br />
+ <legend>Kontaktperson</legend>
+ <dt>
+ <xsl:if test="">
+ <label for="contact_person_1"><xsl:value-of
select="php:function('lang', 'contact_person')" /></label>
+ </xsl:if>
+ </dt>
+ <dd>
+ <label for="contact1_name">Navn</label>
+
+ <label for="contact1_phone">Telefon</label>
+
+ <label for="contact1_mail">E-post</label>
+ </dd>
+ </fieldset>
+ <fieldset>
+ <br />
+ <dt>
+ <label for="office">Kulturkontor</label>
+ </dt>
+ <dd>
+
+ </dd>
+ </fieldset>
+ <br /><br />
+ <div class="form-buttons">
+ <xsl:if test="change_request">
+ <input type="submit" name="activity_ok">
+ <xsl:attribute name="value">
+ <xsl:value-of select="php:function('lang',
'activity_ok')" />
+ </xsl:attribute>
+ </input>
+ <input type="submit" name="change_request">
+ <xsl:attributed name="value">
+ <xsl:value-of select="php:function('lang',
'change_activity')" />
+ </xsl:attributed>
+ </input>
+ </xsl:if>
+ </div>
+ </dl>
+ </form>
+ </div>
+</xsl:template>
\ No newline at end of file
Added:
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity_new.xsl
===================================================================
---
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity_new.xsl
(rev 0)
+++
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity_new.xsl
2015-11-27 00:29:08 UTC (rev 14493)
@@ -0,0 +1,287 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl">
+ <div>
+ <div id="details">
+ <xsl:choose>
+ <xsl:when test="message">
+ <div class="success">
+ <xsl:value-of select="message" />
+ </div>
+ </xsl:when>
+ <xsl:when test="error">
+ <div class="error">
+ <xsl:value-of select="error" />
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ </div>
+ <div class="pageTop">
+ <h1><xsl:value-of select="php:function('lang', 'new_activity')"
/></h1>
+ <div><xsl:value-of select="php:function('lang',
'required_fields')" /></div>
+ </div>
+ <form method="POST" name="form" id="form">
+ <input type="hidden" name="id">
+ <xsl:attribute name="value">
+
+ </xsl:attribute>
+ </input>
+ <input type="hidden" name="organization_id">
+ <xsl:attribute name="value">
+
+ </xsl:attribute>
+ </input>
+ <xsl:if test="new_organization">
+ <input type="hidden" name="new_organization" value="yes" />
+ </xsl:if>
+ <input type="hidden" name="new_arena_hidden" id="new_arena_hidden"
value="" />
+ <dl class="proplist-col">
+ <fieldset>
+ <xsl:attribute name="title">
+ <xsl:value-of select="php:function('lang', 'what')" />
+ </xsl:attribute>
+ <legend>Hva</legend>
+ <dt>
+ <label for="title">
+ <xsl:value-of select="php:function('lang',
'activity_title')" /> (*)
+ <a href="javascript:void(0);">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_title')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a>
+ </label>
+ </dt>
+ <dd>
+ <input type="text" name="title" id="title" value=""
size="83" maxlength="254" />
+ </dd>
+ <dt>
+ <label for="org_description">
+ <xsl:value-of select="php:function('lang',
'description')" /> (*)
+ <a href="javascript:void(0);">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_description')" />');return
false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a>
+ </label>
+ </dt>
+ <dd>
+ <textarea cols="80" rows="4" name="description"
id="description"></textarea>
+ </dd>
+ <dt>
+ <label for="category">
+ <xsl:value-of select="php:function('lang',
'category')" /> (*)
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_category')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a>
+ </label>
+ </dt>
+ <dd>
+ <select name="category" id="category">
+ <option value="0">Ingen Kategori valgt</option>
+ </select>
+ </dd>
+ </fieldset>
+ <fieldset id="hvem">
+ <legend>For hvem</legend>
+ <dt>
+ <label for="target">
+ <xsl:value-of select="php:function('lang',
'target')" /> (*)
+ <a haref="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_target')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjel" src="{helpImg}" />
+ </a>
+ </label>
+ </dt>
+ <dd>
+ <xsl:for-each select="targets">
+ <input name="target[]" type="checkbox"
value=""></input>
+ </xsl:for-each>
+ </dd>
+ <dt>
+ <input type="checkbox" name="special_adaptation"
id="special_adaptation" />
+ <label for="special_adaptation"><xsl:value-of
select="php:function('lang', 'special_adaptation')" /></label>
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_spec_adapt')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a>
+ </dt>
+ </fieldset>
+ <fieldset title="hvor">
+ <legend>Hvor og når</legend>
+ <dt>
+ <br />
+ <label for="arena">
+ <xsl:value-of select="php:function('lang',
'location')" /> (*)
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_location')" />');return false;
+ </xsl:attribute>
+ <img href="Hjelp" src="{helpImg}" />
+ </a>
+ </label>
+ </dt>
+ <dd>
+ <select name="internal_arena_id"
id="internal_arena_id" style="width:200px;">
+ <option value="0">Lokale ikke valgt</option>
+ <optgroup>
+ <xsl:attribute name="value">
+ <xsl:value-of select="php:function('lang',
'building')" />
+ </xsl:attribute>
+ <xsl:for-each select="buildings">
+ <option value=""></option>
+ </xsl:for-each>
+ </optgroup>
+ <optgroup>
+ <xsl:attribute name="label">
+ <xsl:value-of select="php:function('lang',
'external_arena')" />
+ </xsl:attribute>
+ <xsl:for-each select="arenas">
+ <option value=""></option>
+ </xsl:for-each>
+ </optgroup>
+ </select>
+ <br />
+ <a id="displayText" href="javascript:toggle();">Ikke i
listen? Registrer nytt lokale</a>
+ </dd>
+ <div style="overflow:auto;" id="toggleText">
+ <dl>
+ <dt>
+ <label for="new_arena">
+ <xsl:value-of select="php:function('lang',
'register_new_arena')" />
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_arena')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a>
+ </label>
+ </dt>
+ <dt>
+ <label for="arena_name">
+ <xsl:value-of select="php:function('lang',
'name')" /> (*)
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_arena_name')" />');return false;
+ </xsl:attribute>
+ <img href="Hjelp" src="{helpImg}" />
+ </a>
+ </label>
+ </dt>
+ <dd>
+ <input id="arena_name" name="arena_name"
size="50" type="text" />
+ </dd>
+ <dt style="margin-right:20px;float:left;">
+ <label for="arena_address">
+ Gateadresse (*)
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_arena_address')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a>
+ </label><br />
+ <input id="arena_address"
onkeyup="javascript:get_address_search_arena()" name="arena_address" size="50"
type="text" /><br />
+ <div id="arena_address_container" />
+ </dt>
+ <dt style="clear:right;float:left">
+ <label for="arena_number">Husnummer</label><br
/>
+ <input type="text" name="arena_number"
size="5" />
+ </dt><br />
+ <dt
style="clear:left;margin-roght:20px;float:left;">
+ <label for="postaddress">Postnummer
(*)</label><br />
+ <input type="text" name="postaddress" size="5"
/>
+ </dt><br />
+ </dl>
+ </div>
+ <dt>
+ <br />
+ <label for="district">
+ <xsl:value-of select="php:function('lang',
'district')" /> (*)
+ <a href="javascript:void(0)">
+ <xsl:attributed name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_district')" />');return false;
+ </xsl:attributed>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a>
+ </label>
+ </dt>
+ <dd>
+ <xsl:for-each select="districts">
+ <input name="district" type="radio"
value=""></input><br />
+ </xsl:for-each>
+ </dd>
+ <dt>
+ <br />
+ <label for="time">
+ <xsl:value-of select="php:function('lang',
'time')" /> (*)
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_time')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a>
+ </label>
+ </dt>
+ <dd>
+ <input type="text" name="time" id="time" value=""
size="80" maxlength="254" />
+ </dd>
+ </fieldset>
+ <fieldset id="arr">
+ <legend>Kontaktperson</legend><br />
+ Kontaktperson for aktiviteten
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of select="php:function('lang',
'help_new_activity_contact_person')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a><br />
+ <dt><label for="contact_name">Navn (*)</label></dt>
+ <dd><input type="text" name="contact_name"
id="contact_name" size="80" /></dd>
+ <dt><label for="contact_phone">Telefon (*)</label></dt>
+ <dd><input type="text" name="contact_phone"
id="contact_phone" /></dd>
+ <dt><label for="contact_mail">E-post (*)</label></dt>
+ <dd><input type="text" name="contact_mail"
id="contact_mail" size="50" /></dd>
+ <dt><label for="contact_mail2">Gjenta e-post
(*)</label></dt>
+ <dd><input type="text" name="contact_mail2"
id="contact_mail2" size="50" /></dd>
+ </fieldset>
+ <fieldset>
+ <br />
+ <dt>
+ <label for="office">
+ Hvilket kulturkontor skal motta registreringen (*)
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_office')" />');return false;
+ </xsl:attribute>
+ </a>
+ <img alt="Hjelp" src="{helpImg}" />
+ </label>
+ </dt>
+ <dd>
+ <select name="office" id="office">
+ <option value="0">Ingen kontor valgt</option>
+ <xsl:for-each select="offices">
+ <option value=""></option>
+ </xsl:for-each>
+ </select>
+ </dd>
+ </fieldset>
+ <br />
+ <div clas="form-buttons">
+ <input type="submit" name="save_activity" onclick="return
allOK();">
+ <xsl:attribute name="value">
+ <xsl:value-of select="php:function('lang',
'save_activity')" />
+ </xsl:attribute>
+ </input>
+ </div>
+ </dl>
+ </form>
+ </div>
+</xsl:template>
\ No newline at end of file
Added:
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity_new_step_1.xsl
===================================================================
---
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity_new_step_1.xsl
(rev 0)
+++
branches/dev-syncromind/activitycalendarfrontend/templates/base/activity_new_step_1.xsl
2015-11-27 00:29:08 UTC (rev 14493)
@@ -0,0 +1,130 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl">
+ <div>
+ <div class="pageTop">
+ <h1><xsl:value-of select="php:function('lang',
'new_activity_helptext')" /></h1>
+ <form method="POST" name="form" id="form">
+ <input type="hidden" name="organization_id_hidden"
id="organization_id_hidden" value="" />
+ <fieldset>
+ <dl class="proplist-col">
+ <legend><xsl:value-of select="php:function('lang',
'responsible')" /></legend>
+ <dt>
+ <label for="organization_id"><xsl:value-of
select="php:function('lang', 'choose_org')" /></label>
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_choose_activity_org')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a>
+ </dt>
+ <dd>
+ <select name="organization_id"
id="organization_id">
+ <option value="">Ingen organisasjon
valgt</option>
+ <!--xsl:for-each select="organizations">
+ <option>
+ <xsl:attribute name="value">
+ <xsl:value-of select="id" />
+ </xsl:attribute>
+ <xsl:value-of select="name" />
+ </option>
+ </xsl:for-each-->
+ </select>
+ </dd>
+ <a id="displayText3" href="javascript:void(0)">Ikke i
listen? Registrer ny organisasjon</a><br />
+ <dt>
+ <div style="overflow:hidden;" id="toggleText3">
+ <dl>
+ <div style="overflow:hidden;">
+ <p>
+ Registrer ny organisasjon
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_new_activity_org')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp"
src="{helpImg}" />
+ </a>
+ </p>
+ Felt merket med (*) er påkrevde felt
<br /><br />
+ <dt>
+ <label
for="orgname">Organisasjonsnavn (*)</label>
+ <a href="javascript:void(0)">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_organization_name')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp"
src="{helpImg}" />
+ </a>
+ </dt>
+ <dd><input type="text" name="orgname"
id="orgname" size="80" maxlength="254" /></dd>
+ <dt><label
for="orgno">Organisasjonsnummer</label></dt>
+ <dd><input type="text" name="orgno"
maxlength="254" /></dd>
+ <dt
style="margin-right:20px;float:left;">
+ <label for="street">
+ Gateadresse
+ <a href="javascript:void(0);">
+ <xsl:attribute
name="onclick">
+ alert('<xsl:value-of
select="php:function('help_streetaddress')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp"
src="{helpImg}" />
+ </a>
+ </label><br />
+ <input id="address"
onkeyup="javascript:get_address_search()" name="address" size="50" type="text"
/><br />
+ <div id="address_container" />
+ </dt>
+ <dt style="clear:right;float:left;">
+ <label
for="number">Husnummer</label><br />
+ <input name="number" size="5"
type="text" />
+ </dt><br />
+ <dt
style="clear:left;margin-right:20px;float:left;">
+ <label
for="postzip">Postnummer</label><br />
+ <input name="postzip" size="5"
type="text" />
+ </dt>
+ <dt style="float:left;">
+ <label
for="postaddress">Poststed</label><br />
+ <input name="postaddress"
size="40" type="text" />
+ </dt><br /><br />
+ </div>
+ <dt>
+ <label for="homepage">
+ Hjemmeside
+ <a href="javascript:void(0);">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_homepage')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp"
src="{helpImg}" />
+ </a>
+ </label>
+ </dt>
+ <dd><input name="homepage" value="http://"
size="80" type="text" maxlength="254" /></dd><br /><br />
+ <div style="overflow:hidden;">
+ Kontaktperson for organisasjonen
+ <a href="javascript:void(0);">
+ <xsl:attribute name="onclick">
+ alert('<xsl:value-of
select="php:function('lang', 'help_contact_person')" />');return false;
+ </xsl:attribute>
+ <img alt="Hjelp" src="{helpImg}" />
+ </a><br />
+ <dt><label for="contact1_name">Navn
(*)</label></dt>
+ <dd><input name="org_contact1_name"
id="org_contact1_name" type="text" size="80" maxlength="254" /></dd>
+ <dt><label
for="contact1_phone">Telefon (*)</label></dt>
+ <dd><input name="org_contact1_phone"
id="org_contact1_phone" type="text" /></dd>
+ <dt><label for="contact1_mail">E-post
(*)</label></dt>
+ <dd><input name="org_contact1_mail"
id="org_contact1_mail" type="text" size="50" /></dd>
+ <dt><label for="contact2_mail">Gjenta
e-post (*)</label></dt>
+ <dd><input name="org_contact2_mail"
id="org_contact2_mail" type="text" size="50" /></dd>
+ </div>
+ </dl>
+ </div>
+ </dt>
+ <br /><br />
+ <div class="form-buttons">
+ <input type="submit" name="step_1" onclick="return
isOK();">
+ <xsl:attribute name="value">
+ <xsl:value-of select="php:function('lang',
'next')" />
+ </xsl:attribute>
+ </input>
+ </div>
+ </dl>
+ </fieldset>
+ </form>
+ </div>
+ </div>
+</xsl:template>
Added:
branches/dev-syncromind/activitycalendarfrontend/templates/base/app_data.xsl
===================================================================
---
branches/dev-syncromind/activitycalendarfrontend/templates/base/app_data.xsl
(rev 0)
+++
branches/dev-syncromind/activitycalendarfrontend/templates/base/app_data.xsl
2015-11-27 00:29:08 UTC (rev 14493)
@@ -0,0 +1,2 @@
+<xsl:template name="dummy">
+</xsl:template>
\ No newline at end of file
Added:
branches/dev-syncromind/activitycalendarfrontend/templates/base/images/hjelp.gif
===================================================================
(Binary files differ)
Property changes on:
branches/dev-syncromind/activitycalendarfrontend/templates/base/images/hjelp.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14493] php templates to xsl,
Saul <=