source: extensions/cuise/admin/cuise_admin.tpl @ 19486

Last change on this file since 19486 was 19486, checked in by cljosse, 11 years ago

[style cuise] create cuise

File size: 6.6 KB
Line 
1{html_head}
2        <script type="text/javascript" src="themes/cuise/admin/js/farbtastic.js" ></script>
3  <script type="text/javascript" src="themes/cuise/admin/js/admin.js" ></script>
4        <script type="text/javascript" src="themes/default/js/ui/minified/jquery.ui.slider.min.js"></script>
5        <script type="text/javascript" src="themes/cuise/admin/js/fileupload.js" ></script>
6    <link rel="stylesheet" href="themes/cuise/admin/theme.css" />
7<style type='text/css'>
8#result{ldelim}  width:auto;height:300px;
9float:right;
10right:0px;
11top:0px;
12overflow:auto;
13}
14.image{ldelim} width:55%;height:300px;
15        border:1px solid yellow;
16        min-height:300px;
17}
18.filemgt{ldelim}
19    z-index:2;
20    border:1px solid blue;
21    width:auto;
22   
23    right:0px;
24    min-height:400px;
25}
26.filemgt table td{ldelim}
27    border:1px solid green
28}
29
30
31</style>
32    <script type="text/javascript">
33var process_script='{$classeRoot}process.php';
34var path='{$root}'
35var path_theme='{$theme}';
36var path_theme_images='{$theme}images/';
37
38jQuery(document).ready(function(){ldelim}
39jQuery('#fileInput').ajaxfileuploader({ldelim}
40    SCRIPT: process_script,
41    PATH: path,
42    PATH_THEME: path_theme,
43    PATH_IMG:path_theme_images,
44    VALIDFORMAT:['jpeg','jpg','png','gif','bmp'],
45    MAXUPLOAD:9,
46    TABLEHEAD:{ldelim}
47        name:'name',
48        imgname:'image name',
49        operation:'Operation',
50       
51        }})
52});
53
54  jQuery.fn.ajaxfileuploader.defaults = {ldelim}
55    SCRIPT: process_script,
56    PATH: path,
57    PATH_THEME: path_theme,
58    PATH_IMG:path_theme_images,
59    ACTION: '',
60    VALIDFORMAT: ['jpeg', 'jpg', 'png', 'gif', 'bmp'],
61    MAXUPLOAD: 5,
62    TABLEHEAD:  {ldelim} name: 'name',
63      imgname: 'image name',
64      operation: 'Operation'
65     
66    }
67  }
68
69</script>
70
71{/html_head}   
72<div class="titrePage">
73<h2>{$theme}{$parent}</h2>
74</div>
75<form action="" method="post">
76
77<fieldset  >
78        <legend>{'Color of theme'|@translate}</legend>
79          <div id="textcolor">
80    <fieldset   ><legend>Select</legend>
81    {foreach from=$name_tpl item=name_1  name=t}
82    <input type="submit" name="sel_tab" value="{$smarty.foreach.t.index}" ><span>{$name_1}</span>
83    {/foreach}
84
85
86    </fieldset>
87    <fieldset class="fld1" ><legend>{$name_tpl.$ind}</legend>
88
89          <div class="form-item"><label>
90    {'Rayon'|@translate}:</label>
91    <input type="text" name="rayon_cuise_{$ind}" class="color" value="{$selected_rayon_cuise}" />
92    </div>
93
94          <div class="form-item"><label>{'Background color'|@translate}:</label>
95    <input type="text" name="bg_cuise_{$ind}" class="colorwell" value="{$selected_bg_cuise}" />
96    </div>
97          <div class="form-item"><label>{'Background color hover'|@translate}:</label>
98    <input type="text" name="bgho_cuise_{$ind}" class="colorwell" value="{$selected_bgho_cuise}" />
99    </div>
100
101          <div class="form-item">
102    <label>{'Border color'|@translate}:</label><input type="text" name="bd_cuise_{$ind}" class="colorwell" value="{$selected_bd_cuise}" />
103    </div>
104          <div class="form-item">
105    <label>{'Text color'|@translate}:</label>
106    <input type="text" name="co_cuise_{$ind}" class="colorwell" value="{$selected_co_cuise}" />
107    </div>
108 <div class="form-item">
109    <label>{'Text color hover'|@translate}:</label>
110    <input type="text" name="coho_cuise_{$ind}" class="colorwell" value="{$selected_coho_cuise}" />
111   </div>
112
113
114   <div class="form-item">
115    <label>{'Image'|@translate}:</label>
116   
117<p>
118<label >{$theme}images/{$selected_img_cuise} </label> 
119<p>
120<label >{'repeat x'|@translate} </label> <input name="chk_cuise_x_{$ind}" type=checkbox value="chk_cuise_x" {$selected_chk_x_cuise} />
121
122
123<label >{'repeat y'|@translate} </label> <input name="chk_cuise_y_{$ind}" type=checkbox value="chk_cuise_y" {$selected_chk_y_cuise} />
124
125 
126<p>
127<p>
128<label >{'no background'|@translate} </label> <input name="chk_cuise_{$ind}" type=checkbox  value="chk_cuise" {$selected_chk_cuise} />
129   </div>
130
131
132
133
134    </fieldset>
135          <p>  <input type="submit" name="default" value="{'Default'|@translate}" >
136  <input type="submit" name="compiled-templates" id="compiled-templates" value="{$parent}" >
137</p>
138<p>
139
140   <ul>
141   <li>{strip}{'Parent theme'|@translate}:&nbsp;
142
143<select onchange="javascript:jQuery('#compiled-templates').val(this.value).click();">
144
145{foreach from=$list_themes item=list_theme}
146  <option value="{$list_theme.id}"   {if $list_theme.name==$parent }  selected="selected"  {/if } >{$list_theme.name} </option><br>
147{/foreach}
148
149</select>
150{/strip}</li>
151</ul>
152   </p>
153          </div>
154 
155          <div id="picker"></div>
156 
157
158    <style>
159   #thePicturePage{ldelim}
160    background-color:{$selected_bg_cuise};
161    {if $selected_chk_cuise!="checked"}
162    background-image:url({$theme}images/{$selected_img_cuise}) ;
163    {else}
164      background-image:none ;
165{/if}
166      background-repeat: repeat-x;
167      float:right;
168      right:0px;
169      width:450px;
170      height:300px;
171      border:3px solid {$selected_bd_cuise};
172         
173     -moz-border-radius: {$selected_rayon_cuise} ;
174      border-radius: {$selected_rayon_cuise} {$selected_rayon_cuise};
175   
176    } 
177    #thePicturePage a:hover{ldelim}
178        color:{$selected_coho_cuise}; 
179    }
180
181      #thePicturePage:hover{ldelim}
182          background-color:{$selected_bgho_cuise};
183          background-image:url({$theme}images/hover_{$selected_img_cuise}) ;
184          background-repeat: repeat-x;
185         
186      }
187    #theHeader a{ldelim}
188        color:{$selected_co_cuise};
189    }
190        #menubar a{ldelim}
191        color:{$selected_co_cuise};
192    }
193       .wrap1 , .wrap2 a{ldelim}
194        color:{$selected_co_cuise};
195    }
196    </style>
197
198
199    <div id="thePicturePage" class="image admin" >
200        <div id="theHeader"   style="padding:100px" >
201 <a name='test'  > {$theme}images/{$selected_img_cuise}</a>
202        </div>
203
204        <div id="#menubar"   >
205         <dt>
206         test 1
207         </dt>
208          <dt>
209         test 2
210         </dt>
211 
212        </div>
213         <div class="wrap1" >
214
215         <div class="wrap2" >
216   
217        </div>
218   
219        </div>
220    </div>
221
222 {if $selected_chk_cuise!="checked"}     
223                 <label>Name</label>:
224         <input type="text" name="img_cuise_{$ind}" id='fileInputTxt' value="{$selected_img_cuise}" />
225             <label>Upload</label>:<input type='file' size="60" value="{$theme}images/{$selected_img_cuise}" id='fileInput' >
226         <div id="result" style="float:left" >
227       
228     </div>
229     
230
231     
232
233
234{/if}
235
236</fieldset> 
237{footer_script}{literal}
238
239{/literal}{/footer_script}
240<p><input type="submit" name="submit" id="send" value="{'Submit'|@translate}_{$ind}">
241</form>
242<a href="themes/cuise/theme.css.php?{$options}" >Sauvegarde</a>
Note: See TracBrowser for help on using the repository browser.