Changeset 999 in ExiteCMS
- Timestamp:
- 10/23/07 14:49:17 (4 years ago)
- Location:
- modules/common/advertising/php-files/modules/advertising
- Files:
-
- 10 edited
-
advertising.php (modified) (5 diffs)
-
advertising_admin.php (modified) (20 diffs)
-
locale/English.php (modified) (2 diffs)
-
module_installer.php (modified) (3 diffs)
-
templates/modules.advertising.addclient.tpl (modified) (2 diffs)
-
templates/modules.advertising.delclient.tpl (modified) (1 diff)
-
templates/modules.advertising.edit.tpl (modified) (13 diffs)
-
templates/modules.advertising.images.tpl (modified) (5 diffs)
-
templates/modules.advertising.overview.tpl (modified) (7 diffs)
-
templates/modules.advertising.tpl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/common/advertising/php-files/modules/advertising/advertising.php
r997 r999 70 70 if ($id == "all") { 71 71 $result = dbquery("SELECT * FROM ".$db_prefix."advertising WHERE adverts_userid = '".$userdata['user_id']."' ORDER BY adverts_contract_start"); 72 $subject = $locale[' 510'];72 $subject = $locale['ads510']; 73 73 } else { 74 74 $result = dbquery("SELECT * FROM ".$db_prefix."advertising WHERE adverts_userid = '".$userdata['user_id']."' AND adverts_id = '$id'"); 75 $subject = sprintf($locale[' 511'], $id);75 $subject = sprintf($locale['ads511'], $id); 76 76 } 77 77 // get the number of priority codes used. 78 78 $result2 = dbquery("SELECT DISTINCT adverts_priority FROM ".$db_prefix."advertising"); 79 79 $prio_count = dbrows($result2); 80 $html_body = "<font face='sans_serif'>".sprintf($locale[' 512'],showdate('longdate', time()))."<br><br>";81 $text_body = sprintf($locale[' 512'],showdate('longdate', time()))."\r\n";80 $html_body = "<font face='sans_serif'>".sprintf($locale['ads512'],showdate('longdate', time()))."<br><br>"; 81 $text_body = sprintf($locale['ads512'],showdate('longdate', time()))."\r\n"; 82 82 if (dbrows($result)) { 83 83 while ($data = dbarray($result)) { … … 86 86 $text_body .= str_repeat("-",80)."\r\n"; 87 87 // advert ID 88 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale[' 460']."</td><td>: ".$data['adverts_id']."</td></tr>\r\n";89 $text_body .= str_pad($locale[' 460'],25).": ".$data['adverts_id']."\r\n";88 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale['ads460']."</td><td>: ".$data['adverts_id']."</td></tr>\r\n"; 89 $text_body .= str_pad($locale['ads460'],25).": ".$data['adverts_id']."\r\n"; 90 90 // advert location 91 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale[' 462']."</td><td>: ".$ad_locations[$data['adverts_location']]."</td></tr>\r\n";92 $text_body .= str_pad($locale[' 462'],25).": ".$ad_locations[$data['adverts_location']]."\r\n";91 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale['ads462']."</td><td>: ".$ad_locations[$data['adverts_location']]."</td></tr>\r\n"; 92 $text_body .= str_pad($locale['ads462'],25).": ".$ad_locations[$data['adverts_location']]."\r\n"; 93 93 // only report priority if it's being used 94 94 if ($prio_count > 1) { 95 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale[' 424']."</td><td>: ".$data['adverts_priority']."</td></tr>\r\n";96 $text_body .= str_pad($locale[' 424'],25).": ".$data['adverts_priority']."\r\n";95 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale['ads424']."</td><td>: ".$data['adverts_priority']."</td></tr>\r\n"; 96 $text_body .= str_pad($locale['ads424'],25).": ".$data['adverts_priority']."\r\n"; 97 97 } 98 98 // contract type 99 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale[' 411']."</td><td>: ".$contract_types[$data['adverts_contract']]."</td></tr>\r\n";100 $text_body .= str_pad($locale[' 411'],25).": ".$contract_types[$data['adverts_contract']]."\r\n";99 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale['ads411']."</td><td>: ".$contract_types[$data['adverts_contract']]."</td></tr>\r\n"; 100 $text_body .= str_pad($locale['ads411'],25).": ".$contract_types[$data['adverts_contract']]."\r\n"; 101 101 switch ($data['adverts_contract']) { 102 102 case 0: 103 103 break; 104 104 case 1: 105 $html_body .= "<tr><td width='1%' style='white-space:nowrap'></td><td>: ".$locale[' 412'].": ".showdate('shortdate',$data['adverts_contract_start']);106 $text_body .= " - ".str_pad($locale[' 412'],23).": ".showdate('shortdate',$data['adverts_contract_start'])."\r\n";105 $html_body .= "<tr><td width='1%' style='white-space:nowrap'></td><td>: ".$locale['ads412'].": ".showdate('shortdate',$data['adverts_contract_start']); 106 $text_body .= " - ".str_pad($locale['ads412'],23).": ".showdate('shortdate',$data['adverts_contract_start'])."\r\n"; 107 107 if ($data['adverts_contract_end']) { 108 $html_body .= "<tr><td width='1%' style='white-space:nowrap'></td><td>: ".$locale[' 413'].": ".showdate('shortdate',$data['adverts_contract_end']);109 $text_body .= " - ".str_pad($locale[' 413'],23).": ".showdate('shortdate',$data['adverts_contract_end'])."\r\n";108 $html_body .= "<tr><td width='1%' style='white-space:nowrap'></td><td>: ".$locale['ads413'].": ".showdate('shortdate',$data['adverts_contract_end']); 109 $text_body .= " - ".str_pad($locale['ads413'],23).": ".showdate('shortdate',$data['adverts_contract_end'])."\r\n"; 110 110 } 111 111 break; 112 112 case 2: 113 $html_body .= "<tr><td width='1%' style='white-space:nowrap'></td><td>: ".$locale[' 414'].": ".$data['adverts_sold'];114 $text_body .= "- ".str_pad($locale[' 414'],23).": ".$data['adverts_sold']."\r\n";115 $html_body .= "<tr><td width='1%' style='white-space:nowrap'></td><td>: ".$locale[' 413'].": ".$data['adverts_sold']-$data['adverts_shown'];116 $text_body .= "- ".str_pad($locale[' 413'],23).": ".$data['adverts_sold']-$data['adverts_shown']."\r\n";113 $html_body .= "<tr><td width='1%' style='white-space:nowrap'></td><td>: ".$locale['ads414'].": ".$data['adverts_sold']; 114 $text_body .= "- ".str_pad($locale['ads414'],23).": ".$data['adverts_sold']."\r\n"; 115 $html_body .= "<tr><td width='1%' style='white-space:nowrap'></td><td>: ".$locale['ads413'].": ".$data['adverts_sold']-$data['adverts_shown']; 116 $text_body .= "- ".str_pad($locale['ads413'],23).": ".$data['adverts_sold']-$data['adverts_shown']."\r\n"; 117 117 break; 118 118 } 119 119 120 120 // number of advert display requests 121 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale[' 479']."</td><td>: ".$data['adverts_shown']."</td></tr>\r\n";122 $text_body .= str_pad($locale[' 479'],25).": ".$data['adverts_shown']."\r\n";121 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale['ads479']."</td><td>: ".$data['adverts_shown']."</td></tr>\r\n"; 122 $text_body .= str_pad($locale['ads479'],25).": ".$data['adverts_shown']."\r\n"; 123 123 // number of user clicks 124 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale[' 464']."</td><td>: ".$data['adverts_clicks']."</td></tr>\r\n";125 $text_body .= str_pad($locale[' 464'],25).": ".$data['adverts_clicks']."\r\n";124 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale['ads464']."</td><td>: ".$data['adverts_clicks']."</td></tr>\r\n"; 125 $text_body .= str_pad($locale['ads464'],25).": ".$data['adverts_clicks']."\r\n"; 126 126 // precentage clicks 127 127 $percent = $data['adverts_shown'] == 0 ? 0 : substr(100 * $data['adverts_clicks'] / $data['adverts_shown'], 0, 5); 128 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale[' 465']."</td><td>: ".$percent." %</td></tr>\r\n";129 $text_body .= str_pad($locale[' 465'],25).": ".$percent." %\r\n";128 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale['ads465']."</td><td>: ".$percent." %</td></tr>\r\n"; 129 $text_body .= str_pad($locale['ads465'],25).": ".$percent." %\r\n"; 130 130 // advert image displayed 131 131 $ad_image = substr($data['adverts_image'],0,strlen($userdata['user_name'])) == $userdata['user_name'] ? substr($data['adverts_image'],strlen($userdata['user_name'])+1) : $data['adverts_image']; 132 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale[' 417']."</td><td>: ".$ad_image."</td></tr>\r\n";133 $text_body .= str_pad($locale[' 417'],25).": ".$ad_image."\r\n";132 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale['ads417']."</td><td>: ".$ad_image."</td></tr>\r\n"; 133 $text_body .= str_pad($locale['ads417'],25).": ".$ad_image."\r\n"; 134 134 // advert URL link 135 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale[' 418']."</td><td>: ".$data['adverts_url']."</td></tr>\r\n";136 $text_body .= str_pad($locale[' 418'],25).": ".$data['adverts_url']."\r\n";135 $html_body .= "<tr><td width='1%' style='white-space:nowrap'>".$locale['ads418']."</td><td>: ".$data['adverts_url']."</td></tr>\r\n"; 136 $text_body .= str_pad($locale['ads418'],25).": ".$data['adverts_url']."\r\n"; 137 137 // end of table 138 138 $html_body .= "</table><br><hr><br>"; … … 158 158 $errormessage = $error; 159 159 } elseif ($id == "all") { 160 $errormessage = $locale[' 953'];160 $errormessage = $locale['ads953']; 161 161 } else { 162 $errormessage = sprintf($locale[' 952'], $id);163 } 164 } else { 165 opentable($locale[' 500']);166 echo "<div align='center'>\n<br /><b>".$locale[' 901']."</b><br /><br />\n</div>\n";162 $errormessage = sprintf($locale['ads952'], $id); 163 } 164 } else { 165 opentable($locale['ads500']); 166 echo "<div align='center'>\n<br /><b>".$locale['ads901']."</b><br /><br />\n</div>\n"; 167 167 closetable(); 168 168 } … … 186 186 case 1: 187 187 if ($data['adverts_contract_start'] > time()) { 188 $contract_type .= " (".$locale[' 472']." ".showdate("%d-%m-%Y", $data['adverts_contract_start']).")";188 $contract_type .= " (".$locale['ads472']." ".showdate("%d-%m-%Y", $data['adverts_contract_start']).")"; 189 189 } elseif ($data['adverts_contract_end'] != 0) { 190 $contract_type .= " (".$locale[' 471']." ".showdate("%d-%m-%Y", $data['adverts_contract_end']).")";190 $contract_type .= " (".$locale['ads471']." ".showdate("%d-%m-%Y", $data['adverts_contract_end']).")"; 191 191 } else { 192 $contract_type .= " (".$locale[' 478'].")";192 $contract_type .= " (".$locale['ads478'].")"; 193 193 } 194 194 break; 195 195 case 2: 196 $contract_type .= " (".($data['adverts_sold']-$data['adverts_shown'])." ".$locale[' 477'].")";196 $contract_type .= " (".($data['adverts_sold']-$data['adverts_shown'])." ".$locale['ads477'].")"; 197 197 break; 198 198 } … … 226 226 case 1: 227 227 if ($data['adverts_contract_start'] > time()) { 228 $contract_type .= " (".$locale[' 472']." ".showdate("%d-%m-%Y", $data['adverts_contract_start']).")";228 $contract_type .= " (".$locale['ads472']." ".showdate("%d-%m-%Y", $data['adverts_contract_start']).")"; 229 229 } elseif ($data['adverts_contract_end'] != 0) { 230 $contract_type .= " (".$locale[' 471']." ".showdate("%d-%m-%Y", $data['adverts_contract_end']).")";230 $contract_type .= " (".$locale['ads471']." ".showdate("%d-%m-%Y", $data['adverts_contract_end']).")"; 231 231 } else { 232 $contract_type .= " (".$locale[' 478'].")";232 $contract_type .= " (".$locale['ads478'].")"; 233 233 } 234 234 break; 235 235 case 2: 236 $contract_type .= " (".($data['adverts_sold']-$data['adverts_shown'])." ".$locale[' 477'].")";236 $contract_type .= " (".($data['adverts_sold']-$data['adverts_shown'])." ".$locale['ads477'].")"; 237 237 break; 238 238 } -
modules/common/advertising/php-files/modules/advertising/advertising_admin.php
r997 r999 86 86 die('copy failed!'); 87 87 } else { 88 $errormessage = sprintf($locale[' 920'], $user_from['user_name'], $user_to['user_name']);88 $errormessage = sprintf($locale['ads920'], $user_from['user_name'], $user_to['user_name']); 89 89 $action = "list"; 90 90 } 91 91 } 92 92 } else { 93 $errormessage = $locale[' 921']; // ad not found in the database93 $errormessage = $locale['ads921']; // ad not found in the database 94 94 } 95 95 } else { 96 $errormessage = $locale[' 922']; // invalid advert_id passed in the POST96 $errormessage = $locale['ads922']; // invalid advert_id passed in the POST 97 97 } 98 98 } else { 99 $errormessage = $locale[' 923']; // client ID not found in the database99 $errormessage = $locale['ads923']; // client ID not found in the database 100 100 } 101 101 } else { 102 $errormessage = $locale[' 924']; // invalid client ID passed in the POST102 $errormessage = $locale['ads924']; // invalid client ID passed in the POST 103 103 } 104 104 } else { 105 $errormessage = $locale[' 923']; // client ID not found in the database105 $errormessage = $locale['ads923']; // client ID not found in the database 106 106 } 107 107 } … … 144 144 $adverts_sold = $_POST['adverts_sold']; 145 145 if (!isNum($_POST['adverts_purchased'])) { 146 $errormessage .= $locale[' 903']."<br />";146 $errormessage .= $locale['ads903']."<br />"; 147 147 } else { 148 148 $adverts_sold = $adverts_sold + ($_POST['change']=="-"?-1:1) * $_POST['adverts_purchased']; 149 149 if ($adverts_sold < 0) { 150 $errormessage .= $locale[' 904']."<br />";150 $errormessage .= $locale['ads904']."<br />"; 151 151 } 152 152 } … … 163 163 $maxsize = explode("x", $ad_dimensions[$adverts_location]); 164 164 if ($dimensions[0] > $maxsize[0] || $dimensions[1] > $maxsize[1]) { 165 $errormessage = sprintf($locale[' 912'], $ad_dimensions[$adverts_location], $dimensions[0]."x".$dimensions[1]);165 $errormessage = sprintf($locale['ads912'], $ad_dimensions[$adverts_location], $dimensions[0]."x".$dimensions[1]); 166 166 } 167 167 } … … 173 173 VALUES ('".$adverts_userid."', '".$adverts_contract."', '".$adverts_contract_start."', '".$adverts_contract_end."', '".$adverts_priority."', '".$adverts_location."', '".$adverts_url."', '".$adverts_sold."', '".$adverts_image."', '".$adverts_status."')"); 174 174 $adverts_id = mysql_insert_id(); 175 $errormessage = $locale[' 906'];175 $errormessage = $locale['ads906']; 176 176 break; 177 177 case "edit": … … 179 179 adverts_priority = '".$adverts_priority."', adverts_location = '".$adverts_location."', adverts_url = '".$adverts_url."', adverts_sold = '".$adverts_sold."', adverts_image = '".$adverts_image."', adverts_status = '".$adverts_status."' 180 180 WHERE adverts_id = '".$adverts_id."'"); 181 $errormessage = $locale[' 907'];181 $errormessage = $locale['ads907']; 182 182 break; 183 183 default: … … 191 191 $action = "list"; 192 192 } else { 193 $errortitle = $locale[' 900'];193 $errortitle = $locale['ads900']; 194 194 } 195 195 } … … 207 207 $imgtemp = $_FILES['myfile']['tmp_name']; 208 208 if (!in_array($imgext, $image_types)) { 209 $errormessage = $locale[' 960'];209 $errormessage = $locale['ads960']; 210 210 } elseif (is_uploaded_file($imgtemp)){ 211 211 if (@getimagesize($imgtemp) && @verify_image($imgtemp)) { … … 221 221 chmod($destfile,0664); 222 222 } else { 223 $errormessage = $locale[' 961'];223 $errormessage = $locale['ads961']; 224 224 } 225 225 } else { 226 $errormessage = $locale[' 962'];226 $errormessage = $locale['ads962']; 227 227 } 228 228 // save the action to be able to reload the form data later … … 270 270 } 271 271 272 $errortitle = $locale[' 476'];273 $errormessage = $locale[' 910'];272 $errortitle = $locale['ads476']; 273 $errormessage = $locale['ads910']; 274 274 } 275 275 } … … 279 279 if ($action == "enable") { 280 280 $result = dbquery("UPDATE ".$db_prefix."advertising SET adverts_status = '1' WHERE adverts_id = '".$adverts_id."'"); 281 $errormessage = sprintf($locale[' 913'], $adverts_id);281 $errormessage = sprintf($locale['ads913'], $adverts_id); 282 282 $action = "list"; 283 283 } 284 284 if ($action == "disable") { 285 285 $result = dbquery("UPDATE ".$db_prefix."advertising SET adverts_status = '0' WHERE adverts_id = '".$adverts_id."'"); 286 $errormessage = sprintf($locale[' 914'], $adverts_id);286 $errormessage = sprintf($locale['ads914'], $adverts_id); 287 287 $action = "list"; 288 288 } … … 291 291 switch ($action) { 292 292 case "delclient": 293 $title = $locale[' 476'];293 $title = $locale['ads476']; 294 294 $result = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id = '$id'"); 295 295 if ($data = dbarray($result)) { … … 304 304 $result = dbquery("UPDATE ".$db_prefix."advertising SET adverts_status = '0' WHERE adverts_image = '".$image."'"); 305 305 unlink(PATH_IMAGES_ADS.$image); 306 $errormessage = $locale[' 971'];306 $errormessage = $locale['ads971']; 307 307 $action = "images"; 308 308 break; … … 310 310 break; 311 311 case "addad": 312 $title = $locale[' 400'];312 $title = $locale['ads400']; 313 313 $result = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id = '$id'"); 314 314 if ($data = dbarray($result)) { 315 $title .= $locale[' 408']."<b>".$data['user_name']."</b>";315 $title .= $locale['ads408']."<b>".$data['user_name']."</b>"; 316 316 $ad_client = $data['user_name']; 317 317 $ad_client_id = $id; … … 336 336 break; 337 337 case "add": 338 $title = $locale[' 447'];338 $title = $locale['ads447']; 339 339 break; 340 340 case "edit": 341 $title = $locale[' 401'];341 $title = $locale['ads401']; 342 342 $result = dbquery("SELECT * FROM ".$db_prefix."advertising WHERE adverts_id = '$adverts_id'"); 343 343 if (dbrows($result) == 0) { 344 $errormessage = $locale[' 901'];344 $errormessage = $locale['ads901']; 345 345 } else { 346 346 // initialise variables … … 384 384 $result = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id = '$adverts_userid'"); 385 385 if ($data = dbarray($result)) { 386 $title .= $locale[' 408']."<b>".$data['user_name']."</b>";386 $title .= $locale['ads408']."<b>".$data['user_name']."</b>"; 387 387 $ad_client = $data['user_name']; 388 388 $ad_client_id = $adverts_userid; … … 394 394 $result = dbquery("SELECT * FROM ".$db_prefix."advertising WHERE adverts_id = '$adverts_id'"); 395 395 if (dbrows($result) == 0) { 396 $errortitle = $locale[' 900'];397 $errormessage = $locale[' 901'];396 $errortitle = $locale['ads900']; 397 $errormessage = $locale['ads901']; 398 398 } else { 399 399 $result = dbquery("DELETE FROM ".$db_prefix."advertising WHERE adverts_id = '$adverts_id'"); 400 $errormessage = $locale[' 902'];400 $errormessage = $locale['ads902']; 401 401 } 402 402 $action = "list"; … … 419 419 $adverts_expired = $_POST['adverts_expired']; 420 420 $action = $action_save; 421 $title = $action =="add"?$locale[' 400']:$locale['401'];422 $title .= $locale[' 408']."<b>".$ad_client."</b>";421 $title = $action =="add"?$locale['ads400']:$locale['ads401']; 422 $title .= $locale['ads408']."<b>".$ad_client."</b>"; 423 423 $ad_client_id = $id; 424 424 break; … … 433 433 case "delclient": 434 434 $variables['id'] = $id; 435 $variables['question'] = sprintf($locale[' 909'], $ad_client);435 $variables['question'] = sprintf($locale['ads909'], $ad_client); 436 436 if (isset($errormessage)) { 437 437 $variables['errormessage'] = $errormessage; … … 591 591 case 1: 592 592 if ($data2['adverts_contract_start'] > time()) { 593 $contract_type .= " (".$locale[' 472']." ".showdate("%d-%m-%Y", $data2['adverts_contract_start']).")";593 $contract_type .= " (".$locale['ads472']." ".showdate("%d-%m-%Y", $data2['adverts_contract_start']).")"; 594 594 } elseif ($data2['adverts_contract_end'] != 0) { 595 $contract_type .= " (".$locale[' 471']." ".showdate("%d-%m-%Y", $data2['adverts_contract_end']).")";595 $contract_type .= " (".$locale['ads471']." ".showdate("%d-%m-%Y", $data2['adverts_contract_end']).")"; 596 596 } 597 597 break; 598 598 case 2: 599 $contract_type .= " (".($data2['adverts_sold']-$data2['adverts_shown'])." ".$locale[' 477'].")";599 $contract_type .= " (".($data2['adverts_sold']-$data2['adverts_shown'])." ".$locale['ads477'].")"; 600 600 break; 601 601 } … … 621 621 case 1: 622 622 if ($data2['adverts_contract_start'] > time()) { 623 $contract_type .= " (".$locale[' 472']." ".showdate("%d-%m-%Y", $data2['adverts_contract_start']).")";623 $contract_type .= " (".$locale['ads472']." ".showdate("%d-%m-%Y", $data2['adverts_contract_start']).")"; 624 624 } elseif ($data2['adverts_contract_end'] != 0) { 625 $contract_type .= " (".$locale[' 471']." ".showdate("%d-%m-%Y", $data2['adverts_contract_end']).")";625 $contract_type .= " (".$locale['ads471']." ".showdate("%d-%m-%Y", $data2['adverts_contract_end']).")"; 626 626 } 627 627 break; 628 628 case 2: 629 $contract_type .= " (".($data2['adverts_sold']-$data2['adverts_shown'])." ".$locale[' 477'].")";629 $contract_type .= " (".($data2['adverts_sold']-$data2['adverts_shown'])." ".$locale['ads477'].")"; 630 630 break; 631 631 } -
modules/common/advertising/php-files/modules/advertising/locale/English.php
r997 r999 1 1 <?php 2 2 // panel titles 3 $locale[' 400'] = "Add an advertisement";4 $locale[' 401'] = "Edit an advertisement";5 $locale[' 402'] = "Advertisements";6 $locale[' 403'] = "Expired advertisements";7 $locale[' 404'] = "Advertising client";8 $locale[' 405'] = "Upload an advertisement image";9 $locale[' 406'] = "Advertisement image management";10 $locale[' 407'] = "Advertisement image preview";11 $locale[' 408'] = " for client ";12 $locale[' 409'] = "Please visit our sponsor";3 $locale['ads400'] = "Add an advertisement"; 4 $locale['ads401'] = "Edit an advertisement"; 5 $locale['ads402'] = "Advertisements"; 6 $locale['ads403'] = "Expired advertisements"; 7 $locale['ads404'] = "Advertising client"; 8 $locale['ads405'] = "Upload an advertisement image"; 9 $locale['ads406'] = "Advertisement image management"; 10 $locale['ads407'] = "Advertisement image preview"; 11 $locale['ads408'] = " for client "; 12 $locale['ads409'] = "Please visit our sponsor"; 13 13 14 14 // add - edit advertisement 15 $locale[' 410'] = "Client name";16 $locale[' 411'] = "Contract based on";17 $locale[' 412'] = "Contract start date";18 $locale[' 413'] = "Contract end date";19 $locale[' 414'] = "Ads currently purchased";20 $locale[' 415'] = "Modify purchased amount";21 $locale[' 416'] = "Ad location";22 $locale[' 417'] = "Ad image";23 $locale[' 418'] = "Advert click URL";24 $locale[' 419'] = "Enable this advert";25 $locale[' 420'] = "Increase by";26 $locale[' 421'] = "Decrease by";27 $locale[' 422'] = "No";28 $locale[' 423'] = "Yes";29 $locale[' 424'] = "Advert priority";30 $locale[' 425'] = "Move to a new client";15 $locale['ads410'] = "Client name"; 16 $locale['ads411'] = "Contract based on"; 17 $locale['ads412'] = "Contract start date"; 18 $locale['ads413'] = "Contract end date"; 19 $locale['ads414'] = "Ads currently purchased"; 20 $locale['ads415'] = "Modify purchased amount"; 21 $locale['ads416'] = "Ad location"; 22 $locale['ads417'] = "Ad image"; 23 $locale['ads418'] = "Advert click URL"; 24 $locale['ads419'] = "Enable this advert"; 25 $locale['ads420'] = "Increase by"; 26 $locale['ads421'] = "Decrease by"; 27 $locale['ads422'] = "No"; 28 $locale['ads423'] = "Yes"; 29 $locale['ads424'] = "Advert priority"; 30 $locale['ads425'] = "Move to a new client"; 31 31 32 32 // contract information 33 $locale[' 430'] = "Open ended period";34 $locale[' 431'] = "Fixed time period";35 $locale[' 432'] = "Number of displays";36 $contract_types = array(0 => $locale[' 430'], 1 => $locale['431'], 2 => $locale['432']);33 $locale['ads430'] = "Open ended period"; 34 $locale['ads431'] = "Fixed time period"; 35 $locale['ads432'] = "Number of displays"; 36 $contract_types = array(0 => $locale['ads430'], 1 => $locale['ads431'], 2 => $locale['ads432']); 37 37 38 38 // buttons 39 $locale[' 440'] = "Save";40 $locale[' 441'] = "Back";41 $locale[' 442'] = "Expire";42 $locale[' 443'] = "Activate";43 $locale[' 444'] = "Change URL";44 $locale[' 445'] = "Email statistics";45 $locale[' 446'] = "Email All statistics";46 $locale[' 447'] = "Add a new client";47 $locale[' 448'] = "Advert image management";48 $locale[' 449'] = "Upload image";39 $locale['ads440'] = "Save"; 40 $locale['ads441'] = "Back"; 41 $locale['ads442'] = "Expire"; 42 $locale['ads443'] = "Activate"; 43 $locale['ads444'] = "Change URL"; 44 $locale['ads445'] = "Email statistics"; 45 $locale['ads446'] = "Email All statistics"; 46 $locale['ads447'] = "Add a new client"; 47 $locale['ads448'] = "Advert image management"; 48 $locale['ads449'] = "Upload image"; 49 49 50 50 // advertisement location and type. 51 51 // Don't forget to add new ones to the array! And don't change the order!!! 52 $locale[' 450'] = "Logo - left side panel"; // location = 053 $locale[' 451'] = "Banner - Discussion Forum"; // location = 154 $locale[' 452'] = "Banner - Forum index only"; // location = 255 $locale[' 453'] = "Banner - Thread index only"; // location = 356 $ad_locations = array(0 => $locale[' 450'], 1 => $locale['451'], 2 => $locale['452'], 3 => $locale['453']);52 $locale['ads450'] = "Logo - left side panel"; // location = 0 53 $locale['ads451'] = "Banner - Discussion Forum"; // location = 1 54 $locale['ads452'] = "Banner - Forum index only"; // location = 2 55 $locale['ads453'] = "Banner - Thread index only"; // location = 3 56 $ad_locations = array(0 => $locale['ads450'], 1 => $locale['ads451'], 2 => $locale['ads452'], 3 => $locale['ads453']); 57 57 asort($ad_locations); // sort the locations alphabetically 58 58 … … 62 62 63 63 // current - finished advertisement 64 $locale[' 460'] = "ID";65 $locale[' 461'] = "Client name";66 $locale[' 462'] = "Advertisment type";67 $locale[' 463'] = "Contract information";68 $locale[' 464'] = "Clicks";69 $locale[' 465'] = "Clicks %";70 $locale[' 466'] = "Options";71 $locale[' 467'] = "Enable";72 $locale[' 468'] = "Disable";73 $locale[' 469'] = "Edit";74 $locale[' 470'] = "Delete";75 $locale[' 471'] = "ends";76 $locale[' 472'] = "starts";77 $locale[' 473'] = "ended";78 $locale[' 474'] = "Advertisements";79 $locale[' 475'] = "Contact email";80 $locale[' 476'] = "Remove this client";81 $locale[' 477'] = "left";82 $locale[' 478'] = "";83 $locale[' 479'] = "Displayed";64 $locale['ads460'] = "ID"; 65 $locale['ads461'] = "Client name"; 66 $locale['ads462'] = "Advertisment type"; 67 $locale['ads463'] = "Contract information"; 68 $locale['ads464'] = "Clicks"; 69 $locale['ads465'] = "Clicks %"; 70 $locale['ads466'] = "Options"; 71 $locale['ads467'] = "Enable"; 72 $locale['ads468'] = "Disable"; 73 $locale['ads469'] = "Edit"; 74 $locale['ads470'] = "Delete"; 75 $locale['ads471'] = "ends"; 76 $locale['ads472'] = "starts"; 77 $locale['ads473'] = "ended"; 78 $locale['ads474'] = "Advertisements"; 79 $locale['ads475'] = "Contact email"; 80 $locale['ads476'] = "Remove this client"; 81 $locale['ads477'] = "left"; 82 $locale['ads478'] = ""; 83 $locale['ads479'] = "Displayed"; 84 84 85 85 // advertising statistics 86 $locale[' 500'] = "Advertising Statistics";87 $locale[' 501'] = "Prio";88 $locale[' 502'] = "Guest";86 $locale['ads500'] = "Advertising Statistics"; 87 $locale['ads501'] = "Prio"; 88 $locale['ads502'] = "Guest"; 89 89 90 90 // client information - email messages 91 $locale[' 510'] = "Following are the complete stats for all your advertising investments at ".$settings['sitename'].":";92 $locale[' 511'] = "Following are the complete stats for your advertising investment with ID %s at ".$settings['sitename'].":";93 $locale[' 512'] = "Statistics report generated on %s\r\n\r\n";94 $locale[' 513'] = "Ads still available";91 $locale['ads510'] = "Following are the complete stats for all your advertising investments at ".$settings['sitename'].":"; 92 $locale['ads511'] = "Following are the complete stats for your advertising investment with ID %s at ".$settings['sitename'].":"; 93 $locale['ads512'] = "Statistics report generated on %s\r\n\r\n"; 94 $locale['ads513'] = "Ads still available"; 95 95 96 96 // advertisement - image upload 97 $locale[' 530'] = "Image filename";97 $locale['ads530'] = "Image filename"; 98 98 99 99 // advertisement - image management 100 $locale[' 540'] = "View";101 $locale[' 541'] = "Delete";102 $locale[' 542'] = "Dimensions";103 $locale[' 543'] = "Options";104 $locale[' 544'] = "Used";100 $locale['ads540'] = "View"; 101 $locale['ads541'] = "Delete"; 102 $locale['ads542'] = "Dimensions"; 103 $locale['ads543'] = "Options"; 104 $locale['ads544'] = "Used"; 105 105 106 106 // messages 107 $locale[' 900'] = "The following errors are detected while validating your input:";108 $locale[' 901'] = "The requested advertisement can not be found in the database.";109 $locale[' 902'] = "The advertisement has been deleted.";110 $locale[' 903'] = "The amount purchased must be numeric.";111 $locale[' 904'] = "The total amount sold to this client can not be negative.";112 $locale[' 905'] = "Are you sure you want to delete this?";113 $locale[' 906'] = "The advertisement is succesfully added.";114 $locale[' 907'] = "The advertisement is succesfully updated.";115 $locale[' 908'] = "This client doesn't have any active advertisements.";116 $locale[' 909'] = "You are about to remove '%s' as an advertising client.<br />This also removes all advertisements, and any images that belong to his client!<br /><br />Are you sure?";117 $locale[' 910'] = "This client and all the clients advertisements have been removed.";118 $locale[' 911'] = "This client doesn't have any expired advertisements.";119 $locale[' 912'] = "The selected image is to big for the selected location.<br />The maximum size for this location is %s, the image selected is %s.";120 $locale[' 913'] = "Advertisement with ID %s has been enabled.";121 $locale[' 914'] = "Advertisement with ID %s has been disabled.";107 $locale['ads900'] = "The following errors are detected while validating your input:"; 108 $locale['ads901'] = "The requested advertisement can not be found in the database."; 109 $locale['ads902'] = "The advertisement has been deleted."; 110 $locale['ads903'] = "The amount purchased must be numeric."; 111 $locale['ads904'] = "The total amount sold to this client can not be negative."; 112 $locale['ads905'] = "Are you sure you want to delete this?"; 113 $locale['ads906'] = "The advertisement is succesfully added."; 114 $locale['ads907'] = "The advertisement is succesfully updated."; 115 $locale['ads908'] = "This client doesn't have any active advertisements."; 116 $locale['ads909'] = "You are about to remove '%s' as an advertising client.<br />This also removes all advertisements, and any images that belong to his client!<br /><br />Are you sure?"; 117 $locale['ads910'] = "This client and all the clients advertisements have been removed."; 118 $locale['ads911'] = "This client doesn't have any expired advertisements."; 119 $locale['ads912'] = "The selected image is to big for the selected location.<br />The maximum size for this location is %s, the image selected is %s."; 120 $locale['ads913'] = "Advertisement with ID %s has been enabled."; 121 $locale['ads914'] = "Advertisement with ID %s has been disabled."; 122 122 123 123 // messages - moving an advert to a new client 124 $locale[' 920'] = "Advertisement succesfully moved from %s to %s.";125 $locale[' 921'] = "The selected Advertisement can not be found.";126 $locale[' 922'] = "Invalid Advertisement ID passed. Is this a hacking attempt?";127 $locale[' 923'] = "The selected new Client record can not be found.";128 $locale[' 924'] = "Invalid client ID passed. Is this a hacking attempt?";124 $locale['ads920'] = "Advertisement succesfully moved from %s to %s."; 125 $locale['ads921'] = "The selected Advertisement can not be found."; 126 $locale['ads922'] = "Invalid Advertisement ID passed. Is this a hacking attempt?"; 127 $locale['ads923'] = "The selected new Client record can not be found."; 128 $locale['ads924'] = "Invalid client ID passed. Is this a hacking attempt?"; 129 129 130 130 // messages - advertising statistics 131 $locale[' 950'] = "%s, You do not appear to be an advertising client.<br /><br />Please <a href='/contact.php'>contact us</a> for more information on becoming a client.";132 $locale[' 951'] = "The URL for the advertisement with ID %s has been updated.";133 $locale[' 952'] = "Detailed statistics for the advertisement with ID %s have been emailed to you.";134 $locale[' 953'] = "Detailed statistics for all your advertisements have been emailed to you.";135 $locale[' 954'] = "%s, There are no advertisements defined for you in this category.";136 $locale[' 955'] = "Please <a href='/contact.php'>contact us</a> if you feel this is not correct.";131 $locale['ads950'] = "%s, You do not appear to be an advertising client.<br /><br />Please <a href='/contact.php'>contact us</a> for more information on becoming a client."; 132 $locale['ads951'] = "The URL for the advertisement with ID %s has been updated."; 133 $locale['ads952'] = "Detailed statistics for the advertisement with ID %s have been emailed to you."; 134 $locale['ads953'] = "Detailed statistics for all your advertisements have been emailed to you."; 135 $locale['ads954'] = "%s, There are no advertisements defined for you in this category."; 136 $locale['ads955'] = "Please <a href='/contact.php'>contact us</a> if you feel this is not correct."; 137 137 138 138 // messages - image uploading 139 $locale[' 960'] = "Upload file does not have an approved file extension (.jpg, .gif or .png)!";140 $locale[' 961'] = "Upload file is not a valid image!";141 $locale[' 962'] = "Hacking attempt! This is not an uploaded file!";139 $locale['ads960'] = "Upload file does not have an approved file extension (.jpg, .gif or .png)!"; 140 $locale['ads961'] = "Upload file is not a valid image!"; 141 $locale['ads962'] = "Hacking attempt! This is not an uploaded file!"; 142 142 143 143 // messages - image management 144 $locale[' 970'] = "There are no uploaded advertisement images";145 $locale[' 971'] = "The advertisement image has been deleted.";144 $locale['ads970'] = "There are no uploaded advertisement images"; 145 $locale['ads971'] = "The advertisement image has been deleted."; 146 146 ?> -
modules/common/advertising/php-files/modules/advertising/module_installer.php
r998 r999 17 17 18 18 if (file_exists(PATH_MODULES."advertising/locale/".$settings['locale'].".php")) { 19 $locale_file =PATH_MODULES."advertising/locale/".$settings['locale'].".php";19 include PATH_MODULES."advertising/locale/".$settings['locale'].".php"; 20 20 } else { 21 $locale_file =PATH_MODULES."advertising/locale/English.php";21 include PATH_MODULES."advertising/locale/English.php"; 22 22 } 23 include $locale_file;24 23 25 24 /*---------------------------------------------------+ 26 25 | Module identification | 27 26 +----------------------------------------------------*/ 28 $mod_title = $locale[' 402']; // title or name of this module29 $mod_description = $locale[' 406'];// short description of it's purpose27 $mod_title = $locale['ads402']; // title or name of this module 28 $mod_description = $locale['ads406']; // short description of it's purpose 30 29 $mod_version = "1.0.0"; // module version number 31 30 $mod_developer = "WanWizard"; // author's name … … 66 65 67 66 $mod_site_links = array(); // site_links definitions. Multiple can be defined 68 $mod_site_links[] = array('name' => $locale[' 402'], 'url' => 'advertising.php', 'panel' => '', 'visibility' => 100);67 $mod_site_links[] = array('name' => $locale['ads402'], 'url' => 'advertising.php', 'panel' => '', 'visibility' => 100); 69 68 70 69 /*---------------------------------------------------+ … … 123 122 if (is_array($group)) { 124 123 // modify the visibility 125 $result = dbquery("UPDATE ".$db_prefix."site_links SET link_visibility = '".$group['group_id']."' WHERE link_name = '".$locale[' 402']."' AND link_url = 'advertising.php'");124 $result = dbquery("UPDATE ".$db_prefix."site_links SET link_visibility = '".$group['group_id']."' WHERE link_name = '".$locale['ads402']."' AND link_url = 'advertising.php'"); 126 125 } 127 126 } -
modules/common/advertising/php-files/modules/advertising/templates/modules.advertising.addclient.tpl
r997 r999 20 20 <table align='center' cellpadding='0' cellspacing='0'> 21 21 <tr> 22 <td class='tbl'>{$locale. 410}:</td>22 <td class='tbl'>{$locale.ads410}:</td> 23 23 <td class='tbl'> 24 24 <select class='textbox' name='new_sponsor' onkeydown='incrementalSelect(this,event)'> … … 30 30 <td align='center' colspan='2' class='tbl'> 31 31 <br /> 32 <input type='submit' name='cancel' value='{$locale. 441}' class='button'> 33 <input type='submit' name='save' value='{$locale. 440}' class='button'>32 <input type='submit' name='cancel' value='{$locale.ads441}' class='button'> 33 <input type='submit' name='save' value='{$locale.ads440}' class='button'> 34 34 </td> 35 35 </tr> -
modules/common/advertising/php-files/modules/advertising/templates/modules.advertising.delclient.tpl
r997 r999 27 27 <td align='center' class='tbl'> 28 28 <br /> 29 <input type='submit' name='no' value='{$locale. 422}' class='button' /> 30 <input type='submit' name='yes' value='{$locale. 423}' class='button' />29 <input type='submit' name='no' value='{$locale.ads422}' class='button' /> 30 <input type='submit' name='yes' value='{$locale.ads423}' class='button' /> 31 31 </td> 32 32 </tr> -
modules/common/advertising/php-files/modules/advertising/templates/modules.advertising.edit.tpl
r997 r999 73 73 <table align='center' width='600' cellpadding='0' cellspacing='0'> 74 74 <tr> 75 <td width='175' class='tbl'>{$locale. 411}:</td>75 <td width='175' class='tbl'>{$locale.ads411}:</td> 76 76 <td class='tbl'> 77 77 <select class='textbox' name='adverts_contract' onchange='hidefields(this)'> … … 81 81 </tr> 82 82 <tr> 83 <td width='175' class='tbl'>{$locale. 412}:</td>83 <td width='175' class='tbl'>{$locale.ads412}:</td> 84 84 <td class='tbl'> 85 85 <select name='contract_start[mday]' class='textbox'> … … 101 101 </tr> 102 102 <tr id='enddate' style='{if $adverts_contract != 1}display:none{/if}'> 103 <td width='175' class='tbl'>{$locale. 413}:</td>103 <td width='175' class='tbl'>{$locale.ads413}:</td> 104 104 <td class='tbl'> 105 105 <select name='contract_end[mday]' class='textbox'> … … 121 121 </tr> 122 122 <tr id='sold1' style='{if $adverts_contract !=2}display:none{/if}'> 123 <td width='175' class='tbl'>{$locale. 414}:</td>123 <td width='175' class='tbl'>{$locale.ads414}:</td> 124 124 <td class='tbl'>{$adverts_sold}</td> 125 125 </tr> 126 126 <tr id='sold2' style='{if $adverts_contract !=2}display:none{/if}'> 127 <td width='175' class='tbl'>{$locale. 415}:</td>127 <td width='175' class='tbl'>{$locale.ads415}:</td> 128 128 <td class='tbl'> 129 129 <select class='textbox' name='change' size='1'> 130 <option value='+' selected="selected">{$locale. 420}</option>131 <option value='-'>{$locale. 421}</option>130 <option value='+' selected="selected">{$locale.ads420}</option> 131 <option value='-'>{$locale.ads421}</option> 132 132 </select> 133 133 <input type='text' class='textbox' name='adverts_purchased' value='0' size='12' maxlength='11' /> … … 135 135 </tr> 136 136 <tr> 137 <td width='175' class='tbl'>{$locale. 416}:</td>137 <td width='175' class='tbl'>{$locale.ads416}:</td> 138 138 <td class='tbl'> 139 139 <select class='textbox' name='adverts_location'> … … 145 145 </tr> 146 146 <tr> 147 <td width='175' class='tbl'>{$locale. 417}:</td>147 <td width='175' class='tbl'>{$locale.ads417}:</td> 148 148 <td class='tbl'> 149 149 {if $ad_images|@count} … … 154 154 </select> 155 155 {else} 156 <b>{$locale. 449}</b>156 <b>{$locale.ads449}</b> 157 157 {/if} 158 158 </td> 159 159 </tr> 160 160 <tr> 161 <td width='175' class='tbl'>{$locale. 424}:</td>161 <td width='175' class='tbl'>{$locale.ads424}:</td> 162 162 <td class='tbl'> 163 163 <select name='adverts_priority' class='textbox'> … … 169 169 </tr> 170 170 <tr> 171 <td width='175' class='tbl'>{$locale. 418}:</td>171 <td width='175' class='tbl'>{$locale.ads418}:</td> 172 172 <td class='tbl'> 173 173 <input type='text' class='textbox' name='adverts_url' value='{$adverts_url}' size='60' maxlength='200' /> … … 175 175 </tr> 176 176 <tr> 177 <td width='175' class='tbl'>{$locale. 419}:</td>177 <td width='175' class='tbl'>{$locale.ads419}:</td> 178 178 <td class='tbl'> 179 179 <select class='textbox' name='adverts_status'> 180 <option value='0'{if $adverts_status == 0} selected="selected"{/if}>{$locale. 422}</option>181 <option value='1'{if $adverts_status == 1} selected="selected"{/if}>{$locale. 423}</option>180 <option value='0'{if $adverts_status == 0} selected="selected"{/if}>{$locale.ads422}</option> 181 <option value='1'{if $adverts_status == 1} selected="selected"{/if}>{$locale.ads423}</option> 182 182 </select> 183 183 </td> … … 190 190 <input type='hidden' name='adverts_userid' value='{$adverts_userid}' /> 191 191 <br /> 192 <input type='submit' name='cancel' value='{$locale. 441}' class='button' /> 193 <input type='submit' name='save' value='{$locale. 440}' class='button' /> 192 <input type='submit' name='cancel' value='{$locale.ads441}' class='button' /> 193 <input type='submit' name='save' value='{$locale.ads440}' class='button' /> 194 194 {if $action == "edit"} 195 195 {if $adverts_expired|default:false} 196 <input type='submit' name='activate' value='{$locale. 443}' class='button' />196 <input type='submit' name='activate' value='{$locale.ads443}' class='button' /> 197 197 {else} 198 <input type='submit' name='expire' value='{$locale. 442}' class='button' />198 <input type='submit' name='expire' value='{$locale.ads442}' class='button' /> 199 199 {/if} 200 200 {/if} … … 208 208 <tr> 209 209 <td width='175' class='tbl'> 210 <br />{$locale. 530}:<br />210 <br />{$locale.ads530}:<br /> 211 211 </td> 212 212 <td class='tbl'> … … 217 217 <td align='center' colspan='2' class='tbl'> 218 218 <br /> 219 <input type='submit' name='upload' value='{$locale. 449}' class='button' />219 <input type='submit' name='upload' value='{$locale.ads449}' class='button' /> 220 220 </td> 221 221 </tr> … … 229 229 <hr /><br /> 230 230 <input type='hidden' name='adverts_id' value='{$adverts_id}' /> 231 <input type='submit' name='moveuser' value='{$locale. 425}' class='button' /> :231 <input type='submit' name='moveuser' value='{$locale.ads425}' class='button' /> : 232 232 <select class='textbox' name='newid' onkeydown='incrementalSelect(this,event)'> 233 233 <option value='0'>--------</option> -
modules/common/advertising/php-files/modules/advertising/templates/modules.advertising.images.tpl
r997 r999 18 18 <!--- 19 19 function confdel(url) { 20 if (confirm('{/literal}{$locale. 905}{literal}')) location.href = url;20 if (confirm('{/literal}{$locale.ads905}{literal}')) location.href = url; 21 21 } 22 22 // ---> … … 30 30 {include file="_closetable.tpl"} 31 31 {/if} 32 {include file="_opentable.tpl" name=$_name title=$locale. 406 state=$_state style=$_style}32 {include file="_opentable.tpl" name=$_name title=$locale.ads406 state=$_state style=$_style} 33 33 <table align='center' cellpadding='0' cellspacing='1' width='500' class='tbl-border'> 34 34 <tr> 35 <td class='tbl2'><b>{$locale. 530}</b></td>36 <td class='tbl2' align='center' width='1%' style='white-space:nowrap'><b>{$locale. 542}</b></td>37 <td class='tbl2' align='center' width='1%' style='white-space:nowrap'><b>{$locale. 544}</b></td>38 <td class='tbl2' align='center' width='1%' style='white-space:nowrap'><b>{$locale. 543}</b></td>35 <td class='tbl2'><b>{$locale.ads530}</b></td> 36 <td class='tbl2' align='center' width='1%' style='white-space:nowrap'><b>{$locale.ads542}</b></td> 37 <td class='tbl2' align='center' width='1%' style='white-space:nowrap'><b>{$locale.ads544}</b></td> 38 <td class='tbl2' align='center' width='1%' style='white-space:nowrap'><b>{$locale.ads543}</b></td> 39 39 </tr> 40 40 {section name=img loop=$image_list} … … 43 43 <td align='center' width='1%' class='{cycle values="tbl1,tbl2" advance=false}' style='white-space:nowrap'>{$image_list[img].x} x {$image_list[img].y}</td> 44 44 <td align='center' width='1%' class='{cycle values="tbl1,tbl2" advance=false}' style='white-space:nowrap'> 45 {if $image_list[img].used}{$locale. 423}{else}{$locale.422}{/if}45 {if $image_list[img].used}{$locale.ads423}{else}{$locale.ads422}{/if} 46 46 </td> 47 47 <td align='center' width='1%' class='{cycle values="tbl1,tbl2"}' style='white-space:nowrap'> 48 [<a href='{$smarty.const.FUSION_SELF}{$aidlink}&action=imgview&image={$image_list[img].image}'>{$locale. 540}</a>]49 [<a href='javascript:confdel("{$smarty.const.FUSION_SELF}{$aidlink}&action=imgdel&image={$image_list[img].image}");'>{$locale. 541}</a>]48 [<a href='{$smarty.const.FUSION_SELF}{$aidlink}&action=imgview&image={$image_list[img].image}'>{$locale.ads540}</a>] 49 [<a href='javascript:confdel("{$smarty.const.FUSION_SELF}{$aidlink}&action=imgdel&image={$image_list[img].image}");'>{$locale.ads541}</a>] 50 50 </td> 51 51 </tr> … … 53 53 <tr> 54 54 <td align='center' colspan='4' class='tbl1'> 55 {$locale. 970}55 {$locale.ads970} 56 56 </td> 57 57 </tr> … … 61 61 <br /> 62 62 <form name='subfunctions' method='post' action='{$smarty.const.FUSION_SELF}{$aidlink}'> 63 <input type='submit' name='cancel' value='{$locale. 441}' class='button'>63 <input type='submit' name='cancel' value='{$locale.ads441}' class='button'> 64 64 </form> 65 65 </td> -
modules/common/advertising/php-files/modules/advertising/templates/modules.advertising.overview.tpl
r997 r999 19 19 <!-- 20 20 function confdel(url) { 21 if (confirm('{/literal}{$locale. 905}{literal}')) location.href = url;21 if (confirm('{/literal}{$locale.ads905}{literal}')) location.href = url; 22 22 } 23 23 // --> 24 24 </script>{/literal} 25 {include file="_opentable.tpl" name=$_name title=$locale. 404|cat:" : <b>"|cat:$data.user_name|cat:"</b>" state=$_state style=$_style}25 {include file="_opentable.tpl" name=$_name title=$locale.ads404|cat:" : <b>"|cat:$data.user_name|cat:"</b>" state=$_state style=$_style} 26 26 <table align='center' cellpadding='0' cellspacing='1' width='90%' class='tbl-border'> 27 27 <tr> 28 <td colspan='7' align='center' class='tbl2'><b>{$locale. 402}</b>28 <td colspan='7' align='center' class='tbl2'><b>{$locale.ads402}</b> 29 29 </td> 30 30 </tr> … … 32 32 {if $smarty.section.ad.first} 33 33 <tr> 34 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale. 460}</b></td>35 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale. 462}</b></td>36 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale. 463}</b></td>37 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale. 479}</b></td>38 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale. 464}</b></td>39 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale. 465}</b></td>40 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale. 466}</b></td>34 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale.ads460}</b></td> 35 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale.ads462}</b></td> 36 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale.ads463}</b></td> 37 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale.ads479}</b></td> 38 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale.ads464}</b></td> 39 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale.ads465}</b></td> 40 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale.ads466}</b></td> 41 41 </tr> 42 42 {/if} … … 49 49 <td align='center' class='tbl1' style='white-space:nowrap'>{$ads1[ad].percentage}%</td> 50 50 <td align='center' class='tbl1' style='white-space:nowrap'> 51 <a href='adverts.php{$aidlink}&action=edit&adverts_id={$ads1[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_edit.gif' alt='{$locale. 469}' title='{$locale.469}' /></a> 52 <a href='javascript:confdel("adverts.php{$aidlink}&action=delete&adverts_id={$ads1[ad].adverts_id}");'><img src='{$smarty.const.THEME}images/page_delete.gif' alt='{$locale. 470}' title='{$locale.470}' /></a> 51 <a href='adverts.php{$aidlink}&action=edit&adverts_id={$ads1[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_edit.gif' alt='{$locale.ads469}' title='{$locale.ads469}' /></a> 52 <a href='javascript:confdel("adverts.php{$aidlink}&action=delete&adverts_id={$ads1[ad].adverts_id}");'><img src='{$smarty.const.THEME}images/page_delete.gif' alt='{$locale.ads470}' title='{$locale.ads470}' /></a> 53 53 {if $ads1[ad].adverts_status == 0} 54 <a href='adverts.php{$aidlink}&action=enable&adverts_id={$ads1[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_green.gif' alt='{$locale. 467}' title='{$locale.467}' /></a>54 <a href='adverts.php{$aidlink}&action=enable&adverts_id={$ads1[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_green.gif' alt='{$locale.ads467}' title='{$locale.ads467}' /></a> 55 55 {else} 56 <a href='adverts.php{$aidlink}&action=enable&adverts_id={$ads1[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_red.gif' alt='{$locale. 468}' title='{$locale.468}' /></a>56 <a href='adverts.php{$aidlink}&action=enable&adverts_id={$ads1[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_red.gif' alt='{$locale.ads468}' title='{$locale.ads468}' /></a> 57 57 {/if} 58 58 </td> … … 61 61 <tr> 62 62 <td colspan='7' align='center' class='tbl1'> 63 <b>{$locale. 908}</b>63 <b>{$locale.ads908}</b> 64 64 </td> 65 65 </tr> 66 66 {/section} 67 67 <tr> 68 <td colspan='7' align='center' class='tbl2'><b>{$locale. 403}</b>68 <td colspan='7' align='center' class='tbl2'><b>{$locale.ads403}</b> 69 69 </td> 70 70 </tr> … … 78 78 <td align='center' class='tbl1' style='white-space:nowrap'>{$ads2[ad].percentage}%</td> 79 79 <td align='center' class='tbl1' style='white-space:nowrap'> 80 <a href='adverts.php{$aidlink}&action=edit&adverts_id={$ads2[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_edit.gif' alt='{$locale. 469}' title='{$locale.469}' /></a> 81 <a href='javascript:confdel("adverts.php{$aidlink}&action=delete&adverts_id={$ads2[ad].adverts_id}");'><img src='{$smarty.const.THEME}images/page_delete.gif' alt='{$locale. 470}' title='{$locale.470}' /></a> 80 <a href='adverts.php{$aidlink}&action=edit&adverts_id={$ads2[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_edit.gif' alt='{$locale.ads469}' title='{$locale.ads469}' /></a> 81 <a href='javascript:confdel("adverts.php{$aidlink}&action=delete&adverts_id={$ads2[ad].adverts_id}");'><img src='{$smarty.const.THEME}images/page_delete.gif' alt='{$locale.ads470}' title='{$locale.ads470}' /></a> 82 82 {if $ads2[ad].adverts_status == 0} 83 <a href='adverts.php{$aidlink}&action=enable&adverts_id={$ads2[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_green.gif' alt='{$locale. 467}' title='{$locale.467}' /></a>83 <a href='adverts.php{$aidlink}&action=enable&adverts_id={$ads2[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_green.gif' alt='{$locale.ads467}' title='{$locale.ads467}' /></a> 84 84 {else} 85 <a href='adverts.php{$aidlink}&action=enable&adverts_id={$ads2[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_red.gif' alt='{$locale. 468}' title='{$locale.468}' /></a>85 <a href='adverts.php{$aidlink}&action=enable&adverts_id={$ads2[ad].adverts_id}'><img src='{$smarty.const.THEME}images/page_red.gif' alt='{$locale.ads468}' title='{$locale.ads468}' /></a> 86 86 {/if} 87 87 </td> … … 90 90 <tr> 91 91 <td colspan='7' align='center' class='tbl1'> 92 <b>{$locale. 911}</b>92 <b>{$locale.ads911}</b> 93 93 </td> 94 94 </tr> … … 98 98 <form name='sf_{$data.user_name}' method='post' action='{$smarty.const.FUSION_SELF}{$aidlink}&id={$data.user_id}'> 99 99 <br /> 100 <input type='submit' name='addad' value='{$locale. 400}' class='button' /> 101 <input type='submit' name='delclient' value='{$locale. 476}' class='button' />100 <input type='submit' name='addad' value='{$locale.ads400}' class='button' /> 101 <input type='submit' name='delclient' value='{$locale.ads476}' class='button' /> 102 102 </form> 103 103 </div> -
modules/common/advertising/php-files/modules/advertising/templates/modules.advertising.tpl
r997 r999 18 18 {include file="_message_table_panel.tpl" name=$_name title=$errortitle state=$_state style=$_style message=$errormessage} 19 19 {/if} 20 {include file="_opentable.tpl" name=$_name title=$locale. 402 state=$_state style=$_style}20 {include file="_opentable.tpl" name=$_name title=$locale.ads402 state=$_state style=$_style} 21 21 <table align='center' cellpadding='0' cellspacing='1' width='600' class='tbl-border'> 22 22 <tr> … … 24 24 <form name='subfunctions' method='post' action='{$smarty.const.FUSION_SELF}{$aidlink}'> 25 25 <br /> 26 <input type='submit' name='add' value='{$locale. 447}' class='button' /> 27 <input type='submit' name='images' value='{$locale. 448}' class='button' />26 <input type='submit' name='add' value='{$locale.ads447}' class='button' /> 27 <input type='submit' name='images' value='{$locale.ads448}' class='button' /> 28 28 <br /><br /> 29 29 </form>
Note: See TracChangeset
for help on using the changeset viewer.
