]> git.mxchange.org Git - friendica.git/blob - view/admin_site.tpl
Implement Smarty3
[friendica.git] / view / admin_site.tpl
1 <script>
2         $(function(){
3                 
4                 $("#cnftheme").fancybox({
5                         width: 800,
6                         autoDimensions: false,
7                         onStart: function(){
8                                 var theme = $("#id_theme :selected").val();
9                                 var theme_mobile = $("#id_theme_mobile :selected").val();
10                                 $("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
11                         }, 
12                         onComplete: function(){
13                                 $("div#fancybox-content form").submit(function(e){
14                                         var url = $(this).attr('action');
15                                         // can't get .serialize() to work...
16                                         var data={};
17                                         $(this).find("input").each(function(){
18                                                 data[$(this).attr('name')] = $(this).val();
19                                         });
20                                         $(this).find("select").each(function(){
21                                                 data[$(this).attr('name')] = $(this).children(":selected").val();
22                                         });
23                                         console.log(":)", url, data);
24                                         
25                                         $.post(url, data, function(data) {
26                                                 if(timer) clearTimeout(timer);
27                                                 NavUpdate();
28                                                 $.fancybox.close();
29                                         })
30                                         
31                                         return false;
32                                 });
33                                 
34                         }
35                 });
36         });
37 </script>
38 <div id='adminpage'>
39         <h1>$title - $page</h1>
40         
41         <form action="$baseurl/admin/site" method="post">
42     <input type='hidden' name='form_security_token' value='$form_security_token'>
43
44         {{ inc $field_input with $field=$sitename }}{{ endinc }}
45         {{ inc $field_textarea with $field=$banner }}{{ endinc }}
46         {{ inc $field_select with $field=$language }}{{ endinc }}
47         {{ inc $field_select with $field=$theme }}{{ endinc }}
48         {{ inc $field_select with $field=$theme_mobile }}{{ endinc }}
49         {{ inc $field_select with $field=$ssl_policy }}{{ endinc }}
50         
51         <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
52         
53         <h3>$registration</h3>
54         {{ inc $field_input with $field=$register_text }}{{ endinc }}
55         {{ inc $field_select with $field=$register_policy }}{{ endinc }}
56         {{ inc $field_input with $field=$daily_registrations }}{{ endinc }}
57         {{ inc $field_checkbox with $field=$no_multi_reg }}{{ endinc }}
58         {{ inc $field_checkbox with $field=$no_openid }}{{ endinc }}
59         {{ inc $field_checkbox with $field=$no_regfullname }}{{ endinc }}
60         
61         <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
62
63         <h3>$upload</h3>
64         {{ inc $field_input with $field=$maximagesize }}{{ endinc }}
65         {{ inc $field_input with $field=$maximagelength }}{{ endinc }}
66         {{ inc $field_input with $field=$jpegimagequality }}{{ endinc }}
67         
68         <h3>$corporate</h3>
69         {{ inc $field_input with $field=$allowed_sites }}{{ endinc }}
70         {{ inc $field_input with $field=$allowed_email }}{{ endinc }}
71         {{ inc $field_checkbox with $field=$block_public }}{{ endinc }}
72         {{ inc $field_checkbox with $field=$force_publish }}{{ endinc }}
73         {{ inc $field_checkbox with $field=$no_community_page }}{{ endinc }}
74         {{ inc $field_checkbox with $field=$ostatus_disabled }}{{ endinc }}
75         {{ inc $field_checkbox with $field=$diaspora_enabled }}{{ endinc }}
76         {{ inc $field_checkbox with $field=$dfrn_only }}{{ endinc }}
77         {{ inc $field_input with $field=$global_directory }}{{ endinc }}
78         {{ inc $field_checkbox with $field=$thread_allow }}{{ endinc }}
79         {{ inc $field_checkbox with $field=$newuser_private }}{{ endinc }}
80         
81         <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
82         
83         <h3>$advanced</h3>
84         {{ inc $field_checkbox with $field=$no_utf }}{{ endinc }}
85         {{ inc $field_checkbox with $field=$verifyssl }}{{ endinc }}
86         {{ inc $field_input with $field=$proxy }}{{ endinc }}
87         {{ inc $field_input with $field=$proxyuser }}{{ endinc }}
88         {{ inc $field_input with $field=$timeout }}{{ endinc }}
89         {{ inc $field_input with $field=$delivery_interval }}{{ endinc }}
90         {{ inc $field_input with $field=$poll_interval }}{{ endinc }}
91         {{ inc $field_input with $field=$maxloadavg }}{{ endinc }}
92         {{ inc $field_input with $field=$abandon_days }}{{ endinc }}
93         
94         <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
95         
96         </form>
97 </div>