2012-04-13 11:20:05 +02:00
|
|
|
<script>
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
$("#cnftheme").fancybox({
|
|
|
|
width: 800,
|
|
|
|
autoDimensions: false,
|
|
|
|
onStart: function(){
|
|
|
|
var theme = $("#id_theme :selected").val();
|
|
|
|
$("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
|
|
|
|
},
|
|
|
|
onComplete: function(){
|
|
|
|
$("div#fancybox-content form").submit(function(e){
|
|
|
|
var url = $(this).attr('action');
|
|
|
|
// can't get .serialize() to work...
|
|
|
|
var data={};
|
|
|
|
$(this).find("input").each(function(){
|
|
|
|
data[$(this).attr('name')] = $(this).val();
|
|
|
|
});
|
|
|
|
$(this).find("select").each(function(){
|
|
|
|
data[$(this).attr('name')] = $(this).children(":selected").val();
|
|
|
|
});
|
|
|
|
console.log(":)", url, data);
|
|
|
|
|
|
|
|
$.post(url, data, function(data) {
|
|
|
|
if(timer) clearTimeout(timer);
|
|
|
|
NavUpdate();
|
|
|
|
$.fancybox.close();
|
|
|
|
})
|
|
|
|
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2011-06-13 18:03:06 +02:00
|
|
|
<div id='adminpage'>
|
|
|
|
<h1>$title - $page</h1>
|
|
|
|
|
|
|
|
<form action="$baseurl/admin/site" method="post">
|
2012-04-18 09:24:47 +02:00
|
|
|
<input type='hidden' name='form_security_token' value='$form_security_token'>
|
|
|
|
|
2011-06-13 18:03:06 +02:00
|
|
|
{{ inc field_input.tpl with $field=$sitename }}{{ endinc }}
|
|
|
|
{{ inc field_textarea.tpl with $field=$banner }}{{ endinc }}
|
|
|
|
{{ inc field_select.tpl with $field=$language }}{{ endinc }}
|
|
|
|
{{ inc field_select.tpl with $field=$theme }}{{ endinc }}
|
2012-03-15 04:36:23 +01:00
|
|
|
{{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }}
|
2011-06-13 18:03:06 +02:00
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
2011-06-18 08:29:59 +02:00
|
|
|
<h3>$registration</h3>
|
2011-06-16 12:05:35 +02:00
|
|
|
{{ inc field_input.tpl with $field=$register_text }}{{ endinc }}
|
|
|
|
{{ inc field_select.tpl with $field=$register_policy }}{{ endinc }}
|
|
|
|
|
|
|
|
{{ inc field_checkbox.tpl with $field=$no_multi_reg }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$no_openid }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$no_regfullname }}{{ endinc }}
|
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
2011-06-18 08:29:59 +02:00
|
|
|
<h3>$upload</h3>
|
2011-06-13 18:03:06 +02:00
|
|
|
{{ inc field_input.tpl with $field=$maximagesize }}{{ endinc }}
|
|
|
|
|
2011-06-18 08:29:59 +02:00
|
|
|
<h3>$corporate</h3>
|
2011-06-13 18:03:06 +02:00
|
|
|
{{ inc field_input.tpl with $field=$allowed_sites }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$allowed_email }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$block_public }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$force_publish }}{{ endinc }}
|
2011-07-05 05:57:07 +02:00
|
|
|
{{ inc field_checkbox.tpl with $field=$no_community_page }}{{ endinc }}
|
2011-07-08 03:25:56 +02:00
|
|
|
{{ inc field_checkbox.tpl with $field=$ostatus_disabled }}{{ endinc }}
|
2011-08-23 03:52:02 +02:00
|
|
|
{{ inc field_checkbox.tpl with $field=$diaspora_enabled }}{{ endinc }}
|
2011-07-08 03:25:56 +02:00
|
|
|
{{ inc field_checkbox.tpl with $field=$dfrn_only }}{{ endinc }}
|
2011-06-13 18:03:06 +02:00
|
|
|
{{ inc field_input.tpl with $field=$global_directory }}{{ endinc }}
|
2012-07-29 19:53:04 +02:00
|
|
|
{{ inc field_checkbox.tpl with $field=$thread_allow }}{{ endinc }}
|
2011-06-13 18:03:06 +02:00
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
2011-06-18 08:29:59 +02:00
|
|
|
<h3>$advanced</h3>
|
|
|
|
{{ inc field_checkbox.tpl with $field=$no_utf }}{{ endinc }}
|
2011-06-13 18:03:06 +02:00
|
|
|
{{ inc field_checkbox.tpl with $field=$verifyssl }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$proxy }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$proxyuser }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$timeout }}{{ endinc }}
|
2012-04-28 08:17:40 +02:00
|
|
|
{{ inc field_input.tpl with $field=$delivery_interval }}{{ endinc }}
|
2012-05-07 13:21:54 +02:00
|
|
|
{{ inc field_input.tpl with $field=$poll_interval }}{{ endinc }}
|
2012-05-04 06:50:48 +02:00
|
|
|
{{ inc field_input.tpl with $field=$maxloadavg }}{{ endinc }}
|
2011-09-30 06:20:19 +02:00
|
|
|
{{ inc field_input.tpl with $field=$abandon_days }}{{ endinc }}
|
2011-06-13 18:03:06 +02:00
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|