2012-04-13 09:20:05 +00:00
|
|
|
<script>
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
$("#cnftheme").fancybox({
|
|
|
|
width: 800,
|
|
|
|
autoDimensions: false,
|
|
|
|
onStart: function(){
|
|
|
|
var theme = $("#id_theme :selected").val();
|
2012-08-15 08:16:42 +00:00
|
|
|
var theme_mobile = $("#id_theme_mobile :selected").val();
|
2012-04-13 09:20:05 +00:00
|
|
|
$("#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 16:03:06 +00:00
|
|
|
<div id='adminpage'>
|
|
|
|
<h1>$title - $page</h1>
|
|
|
|
|
|
|
|
<form action="$baseurl/admin/site" method="post">
|
2012-04-18 07:24:47 +00:00
|
|
|
<input type='hidden' name='form_security_token' value='$form_security_token'>
|
|
|
|
|
2012-12-22 19:57:29 +00:00
|
|
|
{{ inc $field_input with $field=$sitename }}{{ endinc }}
|
|
|
|
{{ inc $field_textarea with $field=$banner }}{{ endinc }}
|
|
|
|
{{ inc $field_select with $field=$language }}{{ endinc }}
|
|
|
|
{{ inc $field_select with $field=$theme }}{{ endinc }}
|
|
|
|
{{ inc $field_select with $field=$theme_mobile }}{{ endinc }}
|
|
|
|
{{ inc $field_select with $field=$ssl_policy }}{{ endinc }}
|
2011-06-13 16:03:06 +00:00
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
2011-06-18 06:29:59 +00:00
|
|
|
<h3>$registration</h3>
|
2012-12-22 19:57:29 +00:00
|
|
|
{{ inc $field_input with $field=$register_text }}{{ endinc }}
|
|
|
|
{{ inc $field_select with $field=$register_policy }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$daily_registrations }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$no_multi_reg }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$no_openid }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$no_regfullname }}{{ endinc }}
|
2011-06-16 10:05:35 +00:00
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
2011-06-18 06:29:59 +00:00
|
|
|
<h3>$upload</h3>
|
2012-12-22 19:57:29 +00:00
|
|
|
{{ inc $field_input with $field=$maximagesize }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$maximagelength }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$jpegimagequality }}{{ endinc }}
|
2011-06-13 16:03:06 +00:00
|
|
|
|
2011-06-18 06:29:59 +00:00
|
|
|
<h3>$corporate</h3>
|
2012-12-22 19:57:29 +00:00
|
|
|
{{ inc $field_input with $field=$allowed_sites }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$allowed_email }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$block_public }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$force_publish }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$no_community_page }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$ostatus_disabled }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$diaspora_enabled }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$dfrn_only }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$global_directory }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$thread_allow }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$newuser_private }}{{ endinc }}
|
2011-06-13 16:03:06 +00:00
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
2011-06-18 06:29:59 +00:00
|
|
|
<h3>$advanced</h3>
|
2012-12-22 19:57:29 +00:00
|
|
|
{{ inc $field_checkbox with $field=$no_utf }}{{ endinc }}
|
|
|
|
{{ inc $field_checkbox with $field=$verifyssl }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$proxy }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$proxyuser }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$timeout }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$delivery_interval }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$poll_interval }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$maxloadavg }}{{ endinc }}
|
|
|
|
{{ inc $field_input with $field=$abandon_days }}{{ endinc }}
|
2011-06-13 16:03:06 +00:00
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|