Remove cutenews/yui, use twitter bootstrap css
[contractdashboard.git] / wizards.mdu
1 <?PHP
2 if($member_db[1] != 1){ msg("error", "Access Denied", "You don't have permission for this section"); }
3
4 if($action == "" or !$action){
5
6 $wizard_options = <<<HTMLWIZARDS
7 <ol>
8 <li style="margin-bottom:5px;"><a href='$PHP_SELF?mod=wizards&action=rss'><b>Rss</b> Setup and Integration</a></li>
9 <li><a href='$PHP_SELF?mod=wizards&action=news'>Integrate <b>News</b> into your site</a></li>
10 </ol>
11
12 HTMLWIZARDS;
13
14 msg("wizard", "Choose Wizard", "$wizard_options");
15 }
16
17
18 // ********************************************************************************
19 // Initiate the News Integration Wizard
20 // ********************************************************************************
21 if($action == "news"){
22
23 //Gather the Templates
24 $templates_list = array();
25 if(!$handle = opendir("./data")){ /*die("<center>Can not open directory $cutepath/data ");*/ }
26 while (false !== ($file = readdir($handle))){
27 if(eregi(".tpl", $file)){
28 $file_arr = explode(".", $file);
29 $templates_list[]= $file_arr[0];
30 }
31 }
32 closedir($handle);
33
34 $templates_html = "<select name=w_template>";
35 foreach($templates_list as $single_template){
36 if($single_template != "rss"){
37
38 if($single_template == "Default"){
39 $templates_html .= "<option selected value=\"$single_template\">$single_template</option>";
40 }else{
41 $templates_html .= "<option value=\"$single_template\">$single_template</option>";
42 }
43
44 }
45 }
46 $templates_html .= "</select>";
47
48 //Gather the Categories
49 $cat_lines = file("./data/category.db.php");
50 if($cat_lines){
51 $cat_html = "<select style='display:;' name=w_category[] id=category multiple>";
52 foreach($cat_lines as $single_line){
53 $cat_arr = explode("|", $single_line);
54 $cat_html .= "<option value=\"$cat_arr[0]\">(ID:$cat_arr[0]) $cat_arr[1]</option>\n";
55 }
56 $cat_html .= "</select><br><label for=allcategory><input id=allcategory onClick=\"if(this.checked){getElementById('category').style.display='none';}else{getElementById('category').style.display='';}\" type=checkbox value='yes' name='w_allcategory'> Or Show from All Categories</label>";
57 }else{
58 $cat_html = "You have no categories";
59 }
60
61 echoheader("wizard", "News Integration Wizard");
62
63 echo<<<WIZARDHTML
64 <table border=0 cellpading=0 cellspacing=0 width=100% height=100%><form method="post" action="$PHP_SELF"><tr><td >
65
66 <table cellspacing="0" cellpadding="3" width="645" height="100%" border="0" style="border-collapse: collapse" bordercolor="#111111"><tr>
67 <td width="639" colspan="2">
68
69
70
71 Welcome to the News Integration Wizard. This tool will help you to integrate the
72 news that you have published using CuteNews, into your existing Webpage. <br>
73 &nbsp;</td></tr>
74 <tr>
75 <td bgcolor="#F7F6F4" style="padding:3px; border-bottom:1px solid gray;" width="639" colspan="2">
76 <b><font size="2">Quick Customization...</font></b></td>
77 </tr>
78 <tr>
79 <td width="356" >
80
81
82
83 <b><br>
84
85
86
87 Number of Active News to Display:</b></td>
88 <td width="277" rowspan="2" valign="top" align="center">
89
90
91
92 <br>
93 <input style="text-align: center" name="w_number" size="11"></td>
94 </tr>
95 <tr>
96 <td width="356" style="padding-left:10px; ">
97
98
99
100 <p align="justify"><i>if the active news are less then the specified number to show, the rest of the
101 news will be fetched from the archives (if any)</i></td>
102 </tr>
103 <tr>
104 <td width="356" >
105
106
107
108 <b><br>
109 Template to Use When Displaying News:</b></td>
110 <td width="277" rowspan="2" valign="top" align="center">
111
112
113
114 <br>
115 $templates_html
116
117 </td>
118 </tr>
119 <tr>
120 <td width="356" style="padding-left:10px; ">
121
122
123
124 <p align="justify"><i>using different templates you can customize the look of
125 your news, comments etc.</i></td>
126 </tr>
127 <tr>
128 <td width="356" >
129
130
131
132 <b><br>
133 Categories to Show News From:</b></td>
134 <td width="277" rowspan="2" valign="top" align="center">
135
136
137
138 <br>
139 $cat_html
140 </td>
141 </tr>
142 <tr>
143 <td width="356" style="padding-left:10px; ">
144
145
146
147 <p align="justify"><i>you can specify only from which categories news will be
148 displayed, hold CTRL to select multiple categories (if any)<br>
149 &nbsp;</i></td>
150 </tr>
151 <tr>
152 <td bgcolor="#F7F6F4" style="padding:3px; border-bottom:1px solid gray; " width="639" colspan="2">
153 <b><font size="2">Advanced Settings...</font></b></td>
154 </tr>
155 <tr>
156 <td width="356" >
157
158
159
160 <b><br>
161 Start 'Displaying' From...</b></td>
162 <td width="277" rowspan="2" align="center" valign="top">
163
164
165
166 <br>
167 <input name="w_start_from" size="11" style="text-align: center"></td>
168 </tr>
169 <tr>
170 <td width="356" style="padding-left:10px; ">
171
172
173
174 <i>if Set, the displaying of the news will be started from the specified number
175 (eg. if set to 2 - the first 2 news will be skipped and the rest shown)</i></td>
176 </tr>
177 <tr>
178 <td width="356" >
179
180
181
182 <b><br>
183 Reverse News Order:</b></td>
184 <td width="277" rowspan="2" align="center" valign="top">
185
186
187
188 <br>
189 &nbsp;<input type=checkbox value="yes" name="w_reverse"></td>
190 </tr>
191 <tr>
192 <td width="356" style="padding-left:10px; ">
193
194
195
196 <i>if Yes, the order of which the news are shown will be reversed</i></td>
197 </tr>
198 <tr>
199 <td width="356" >
200
201
202
203 <b><br>
204 Show Only Active News:</b></td>
205 <td width="277" rowspan="2" align="center" valign="top">
206
207
208
209 <br>
210 <input type=checkbox value="yes" name="w_only_active"></td>
211 </tr>
212 <tr>
213 <td width="356" style="padding-left:10px; ">
214
215
216
217 <i>if Yes, even if the number of news you requested to be shown is bigger than
218 all active news, no news from the archives will be shown</i></td>
219 </tr>
220 <tr>
221 <td width="356">
222
223
224
225 <b><br>
226 Static Include:</b></td>
227 <td width="277" rowspan="2" align="center" valign="top">
228
229
230
231 <br>