Annotation of /trunk/admin.nokkaew.html.php
Parent Directory
|
Revision Log
Revision 14 - (view) (download)
| 1 : | andphe | 3 | <?php |
| 2 : | // NOKKAEW - is "Parrot" in thai name | ||
| 3 : | // Copyright (C) copyright 2006 MamboHub.com | ||
| 4 : | // All rights reserved. The NokKaew project is a extention hack and | ||
| 5 : | // component for the Mambo Open Server. It enables Mambo OS to handle multi | ||
| 6 : | // lingual sites especially in all dynamic contents which are stored in the | ||
| 7 : | // database. | ||
| 8 : | // | ||
| 9 : | // This program is free software; you can redistribute it and/or | ||
| 10 : | // modify it under the terms of the GNU General Public License | ||
| 11 : | // as published by the Free Software Foundation; either version 2 | ||
| 12 : | // of the License, or (at your option) any later version. | ||
| 13 : | // | ||
| 14 : | // This program is distributed in the hope that it will be useful, | ||
| 15 : | // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 : | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 : | // GNU General Public License for more details. | ||
| 18 : | // | ||
| 19 : | // You should have received a copy of the GNU General Public License | ||
| 20 : | // along with this program; if not, write to the Free Software | ||
| 21 : | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. | ||
| 22 : | // | ||
| 23 : | // The "GNU General Public License" (GPL) is available at | ||
| 24 : | // http://www.gnu.org/copyleft/gpl.html | ||
| 25 : | // -------------------------------------------------------------------------------- | ||
| 26 : | // $Id: admin.nokkaew.html.php,v 1.5.3 2006/07/28 11:45:34 akede Exp $ | ||
| 27 : | // | ||
| 28 : | defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); | ||
| 29 : | $adminPath = dirname( __FILE__); | ||
| 30 : | |||
| 31 : | global $mosConfig_locale; | ||
| 32 : | $short_loc = substr( $mosConfig_locale, 0, 2); | ||
| 33 : | if( file_exists( $adminPath . '/nokkaew.help.inc_' . $short_loc . '.php' ) ){ | ||
| 34 : | require_once( $adminPath . '/nokkaew.help.inc_' . $short_loc . '.php' ); | ||
| 35 : | }else require_once( "$adminPath/nokkaew.help.inc.php" ); | ||
| 36 : | |||
| 37 : | class HTML_nokkaew { | ||
| 38 : | |||
| 39 : | function showWelcome() { | ||
| 40 : | HTML_nokkaew_help::showWelcome(); | ||
| 41 : | } | ||
| 42 : | |||
| 43 : | |||
| 44 : | function showDinnermenu() { | ||
| 45 : | HTML_nokkaew_help::showDinnermenu(); | ||
| 46 : | } | ||
| 47 : | |||
| 48 : | function showPostInstall() { | ||
| 49 : | HTML_nokkaew_help::showPostInstall(); | ||
| 50 : | } | ||
| 51 : | |||
| 52 : | function showInformation( $fileCode='TN' ) { | ||
| 53 : | global $act, $task, $option, $mosConfig_absolute_path, $mosConfig_live_site; | ||
| 54 : | HTML_nokkaew::_header() | ||
| 55 : | ?> | ||
| 56 : | <style type="text/css"> | ||
| 57 : | <!-- | ||
| 58 : | .style1 {color: #FF9900} | ||
| 59 : | --> | ||
| 60 : | </style> | ||
| 61 : | |||
| 62 : | <td align="left" valign="top"> | ||
| 63 : | <h2>PREAMBLE</h2> | ||
| 64 : | The NokKaew is a add on component for Mambo Open Source.<br /> | ||
| 65 : | Mambo Open Source is developed and licend by:<br /> | ||
| 66 : | Miro International Pty Ltd. 251 2000 - 2004 All rights reserved.<br /> | ||
| 67 : | <br /> | ||
| 68 : | Mambo Open Source is Free Software released under the GNU/GPL License.<br /> | ||
| 69 : | All trademarks and copyrights within this software are owned | ||
| 70 : | by their respective owners.<br /> | ||
| 71 : | <br /> | ||
| 72 : | Within this license the "product" refers to the name "NokKaew".<br /> | ||
| 73 : | Also the term "NokKaew- Nok Kaew" must not be used by any derived software. | ||
| 74 : | </td> | ||
| 75 : | <?php HTML_nokkaew::_sideMenu();?> | ||
| 76 : | </tr> | ||
| 77 : | <tr> | ||
| 78 : | <td align="left" valign="top"> | ||
| 79 : | <?php | ||
| 80 : | switch ( $fileCode ) { | ||
| 81 : | case "changelog": | ||
| 82 : | ?> | ||
| 83 : | <h2> </h2> | ||
| 84 : | <?php | ||
| 85 : | echo nl2br(file_get_contents(dirname( __FILE__) ."/documentation/ReadMe")); | ||
| 86 : | break; | ||
| 87 : | } | ||
| 88 : | ?> | ||
| 89 : | </td> | ||
| 90 : | <?php | ||
| 91 : | HTML_nokkaew::_footer($act, $option); | ||
| 92 : | } | ||
| 93 : | |||
| 94 : | |||
| 95 : | function showComponentConfiguration( $nokkaewManager, $languageList ) { | ||
| 96 : | global $act, $task, $option, $database, $mosConfig_lang, $mosConfig_live_site; | ||
| 97 : | HTML_nokkaew::_MamboHeader(); | ||
| 98 : | ?> <br /> | ||
| 99 : | <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js"></script> | ||
| 100 : | <table cellpadding="4" cellspacing="0" border="0" width="100%"> | ||
| 101 : | <tr> | ||
| 102 : | <td width="100%" class="sectionname"> | ||
| 103 : | <img src="<?php echo $mosConfig_live_site;?>/components/com_nokkaew/images/nokkaew.png" alt="" width="200" height="58" border="0"><br /> | ||
| 104 : | </td> | ||
| 105 : | </table> | ||
| 106 : | |||
| 107 : | <table cellpadding="3" cellspacing="0" border="0" width="100%"> | ||
| 108 : | <tr> | ||
| 109 : | <td width="100%"> | ||
| 110 : | <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm"> | ||
| 111 : | <tr> | ||
| 112 : | <td class="sectionname" colspan="3"><h3><?php echo _NOKKAEW_ADMIN_SHOWIF;?></h3></td> | ||
| 113 : | </tr> | ||
| 114 : | <tr align="center" valign="middle"> | ||
| 115 : | <td width="30%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_NOTRANSLATION;?></strong></td> | ||
| 116 : | <td width="20%" align="left" valign="top"> | ||
| 117 : | <?php | ||
| 118 : | $options[] = mosHTML::makeOption( '0', _NOKKAEW_ADMIN_ORIGINAL_CONTENT ); | ||
| 119 : | $options[] = mosHTML::makeOption( '1', _NOKKAEW_ADMIN_PLACEHOLDER ); | ||
| 120 : | $options[] = mosHTML::makeOption( '2', _NOKKAEW_ADMIN_ORIGINAL_WITH_INFO ); // activated mic | ||
| 121 : | $frmField = mosHTML::selectList( $options, 'frmTranslationMode', 'class="inputbox" size="1"', 'value', 'text', $nokkaewManager->getCfg( 'noTranslation' ) ); | ||
| 122 : | echo $frmField; | ||
| 123 : | ?> | ||
| 124 : | </td> | ||
| 125 : | <td align="left" valign="top"><?php echo _NOKKAEW_ADMIN_NOTRANSLATION_HELP;?></td> | ||
| 126 : | </tr> | ||
| 127 : | <tr align="center" valign="middle"> | ||
| 128 : | <td width="30%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_PLACEHOLDER;?></strong></td> | ||
| 129 : | <td width="20%" align="left" valign="top"> | ||
| 130 : | <input type="text" name="frmTranslationDefaultText" size="75" value="<?php echo $nokkaewManager->getCfg('defaultText');?>" /> | ||
| 131 : | </td> | ||
| 132 : | <td align="left"> | ||
| 133 : | <?php | ||
| 134 : | $tip = _NOK_TT_TRANS_DEFAULT; | ||
| 135 : | echo mosToolTip( $tip ); | ||
| 136 : | ?> | ||
| 137 : | </td> | ||
| 138 : | </tr> | ||
| 139 : | <tr align="center" valign="middle"> | ||
| 140 : | <td width="30%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_FRONTEND_VIEW;?></strong></td> | ||
| 141 : | <td width="20%" align="left" valign="top"> | ||
| 142 : | <?php | ||
| 143 : | $options = array(); | ||
| 144 : | $options[] = mosHTML::makeOption( '', _NOKKAEW_ADMIN_FRONTEND_COMBO ); | ||
| 145 : | $options[] = mosHTML::makeOption( 'hlist', _NOKKAEW_ADMIN_FRONTEND_LIST ); | ||
| 146 : | $options[] = mosHTML::makeOption( 'vlist', _NOKKAEW_ADMIN_FRONTEND_VLIST ); // new mic | ||
| 147 : | $options[] = mosHTML::makeOption( 'himage', _NOKKAEW_ADMIN_FRONTEND_IMAGE ); | ||
| 148 : | $options[] = mosHTML::makeOption( 'vimage', _NOKKAEW_ADMIN_FRONTEND_VIMAGE ); // new mic | ||
| 149 : | $frmField = mosHTML::selectList( $options, 'frmFrontendMode', 'class="inputbox" size="1"', 'value', 'text', $nokkaewManager->getCfg( 'frontendMode' ) ); | ||
| 150 : | echo $frmField; | ||
| 151 : | ?> | ||
| 152 : | </td> | ||
| 153 : | <td align="left"> | ||
| 154 : | <?php | ||
| 155 : | $tip = _NOKKAEW_ADMIN_FRONTEND_HELP; | ||
| 156 : | echo mosToolTip( $tip ); | ||
| 157 : | ?> | ||
| 158 : | </td> | ||
| 159 : | </tr> | ||
| 160 : | <td width="30%" align="left" valign="top"><strong><?php echo _NOK_SPACER; ?></strong></td> | ||
| 161 : | <td width="20%" align="left" valign="top"> | ||
| 162 : | <input type="text" name="frmTextSpacer" size="5" value="<?php echo $nokkaewManager->getCfg( 'textSpacer' );?>" /> | ||
| 163 : | </td> | ||
| 164 : | <td align="left"> | ||
| 165 : | <?php | ||
| 166 : | $tip = _NOK_TT_SPACER; | ||
| 167 : | echo mosToolTip( $tip ); | ||
| 168 : | ?> | ||
| 169 : | </td> | ||
| 170 : | </tr> | ||
| 171 : | </table> | ||
| 172 : | <br> | ||
| 173 : | |||
| 174 : | <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm"> | ||
| 175 : | <tr> | ||
| 176 : | <tr> | ||
| 177 : | <td class="sectionname" colspan="3"><h3><?php echo _NOKKAEW_ADMIN_SHOWACTIVE;?></h3></td> | ||
| 178 : | </tr> | ||
| 179 : | <td width="30%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_DEFAULT_LANGUAGE;?></strong></td> | ||
| 180 : | <td align="left" valign="top"><strong style="color: red;"><?php echo $mosConfig_lang . '</strong> ( ' . _NOKKAEW_ADMIN_DEFAULT_LANGUAGE_HELP . ' )'; ?></td> | ||
| 181 : | </tr> | ||
| 182 : | <tr> | ||
| 183 : | <td width="30%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_LANGUAGE;?></strong></td> | ||
| 184 : | <td><?php echo _NOKKAEW_ADMIN_LANGUAGE_HELP;?></td> | ||
| 185 : | <tr> | ||
| 186 : | <td align="center" valign="top" colspan="2"> | ||
| 187 : | <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> | ||
| 188 : | <tr> | ||
| 189 : | <th class="title" width="20%" align="left"> | ||
| 190 : | <?php echo _NOKKAEW_ADMIN_TITLE_NAME;?> | ||
| 191 : | | ||
| 192 : | <?php | ||
| 193 : | $tip = _NOK_TT_TITLE_NAME; | ||
| 194 : | echo mosToolTip( $tip ); | ||
| 195 : | ?> | ||
| 196 : | </th> | ||
| 197 : | <th width="5%" align="left"><?php echo _NOKKAEW_ADMIN_TITLE_ACTIVE;?></th> | ||
| 198 : | <th width="10%" nowrap="nowrap" align="left"> | ||
| 199 : | <?php echo _NOKKAEW_ADMIN_TITLE_ISO;?> | ||
| 200 : | | ||
| 201 : | <?php | ||
| 202 : | $tip = _NOK_TT_TITLE_ISO; | ||
| 203 : | echo mosToolTip( $tip ); | ||
| 204 : | ?> | ||
| 205 : | </th> | ||
| 206 : | <th width="15%" nowrap="nowrap" align="left"><?php echo _NOKKAEW_ADMIN_TITLE_MAMBO;?></th> | ||
| 207 : | <th width="30%" nowrap="nowrap" align="left"> | ||
| 208 : | <?php echo _NOKKAEW_ADMIN_TITLE_IMAGE; ?> | ||
| 209 : | | ||
| 210 : | <?php | ||
| 211 : | $tip = _NOK_TT_IMAGES_DIR; | ||
| 212 : | echo mosToolTip( $tip ); | ||
| 213 : | ?> | ||
| 214 : | </th> | ||
| 215 : | <th nowrap="nowrap" align="left"> | ||
| 216 : | <?php echo _NOKKAEW_ADMIN_TITLE_ORDER;?> | ||
| 217 : | | ||
| 218 : | <?php | ||
| 219 : | $tip = _NOK_TT_TITLE_ORDER; | ||
| 220 : | echo mosToolTip( $tip ); | ||
| 221 : | ?> | ||
| 222 : | </th> | ||
| 223 : | </tr> | ||
| 224 : | <?php | ||
| 225 : | $k=0; | ||
| 226 : | $i=0; | ||
| 227 : | reset($languageList); | ||
| 228 : | foreach ($languageList as $language ) { ?> | ||
| 229 : | <tr class="<?php echo 'row' . $k; ?>"> | ||
| 230 : | <td> | ||
| 231 : | <input type="hidden" name="frmLanguageID[]" value="<?php echo $language->id; ?>" /> | ||
| 232 : | andphe | 14 | <input type="hidden" name="frmLanguageName[]" value="<?php echo $language->name; ?>" size="30" maxlength="100" /> |
| 233 : | <?php echo $language->name; ?> | ||
| 234 : | andphe | 3 | </td> |
| 235 : | <td align="center"><input type="checkbox" name="frmLanguageActive[]"<?php echo $language->active==1 ? ' checked' : ''; ?> value="<?php echo $language->id; ?>" /></td> | ||
| 236 : | andphe | 14 | <td><input type="hidden" name="frmLanguageISO[]" value="<?php echo $language->iso; ?>" size="10" maxlength="10" /> |
| 237 : | <?php echo $language->iso; ?></td> | ||
| 238 : | <td><input type="hidden" name="frmLanguageMambo[]" value="<?php echo $language->mambo; ?>" size="20" maxlength="20" /> | ||
| 239 : | <?php echo $language->mambo; ?></td> | ||
| 240 : | andphe | 3 | <td><input type="text" name="frmLanguageImage[]" value="<?php echo $language->image; ?>" size="50" maxlength="100" /></td> |
| 241 : | <td><input type="text" name="frmLanguageOrder[]" value="<?php echo $language->ordering; ?>" size="5" maxlength="5" /></td> | ||
| 242 : | <?php | ||
| 243 : | $k = 1 - $k; | ||
| 244 : | $i++; | ||
| 245 : | } | ||
| 246 : | ?> | ||
| 247 : | </tr> | ||
| 248 : | </table> | ||
| 249 : | </td> | ||
| 250 : | </tr> | ||
| 251 : | </table> | ||
| 252 : | |||
| 253 : | </td></tr> | ||
| 254 : | </table> | ||
| 255 : | <?php | ||
| 256 : | HTML_nokkaew::_MamboFooter($act, $option); | ||
| 257 : | } | ||
| 258 : | |||
| 259 : | function showElementOverview( $nokkaewManager, $option, $search, $pageNav ) { | ||
| 260 : | global $my, $act, $task, $database, $mosConfig_live_site; | ||
| 261 : | HTML_nokkaew::_MamboHeader(); | ||
| 262 : | ?> | ||
| 263 : | <table cellpadding="4" cellspacing="0" border="0" width="100%"> | ||
| 264 : | <tr> | ||
| 265 : | <td width="100%" class="sectionname"> | ||
| 266 : | <img src="<?php echo $mosConfig_live_site;?>/components/com_nokkaew/images/nokkaew.png" alt="" width="200" height="58" border="0"><br /> | ||
| 267 : | </td> | ||
| 268 : | <td nowrap>Display #</td> | ||
| 269 : | <td> <?php echo $pageNav->writeLimitBox(); ?> </td> | ||
| 270 : | <td>Search:</td> | ||
| 271 : | <td> <input type="text" name="search" value="<?php echo $search;?>" class="inputbox" onChange="document.adminForm.submit();" /> | ||
| 272 : | </td> | ||
| 273 : | </tr> | ||
| 274 : | </tr> | ||
| 275 : | </table> | ||
| 276 : | |||
| 277 : | <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> | ||
| 278 : | <tr> | ||
| 279 : | <th width="20" nowrap> </th> | ||
| 280 : | <th class="title" width="35%" align="left"><?php echo _NOKKAEW_ADMIN_TITLE_NAME;?></th> | ||
| 281 : | <th width="15%" align="left"><?php echo _NOKKAEW_ADMIN_TITLE_AUTHOR;?></th> | ||
| 282 : | <th width="15%" nowrap="nowrap" align="left"><?php echo _NOKKAEW_ADMIN_TITLE_VERSION;?></th> | ||
| 283 : | <th nowrap="nowrap" align="left"><?php echo _NOKKAEW_ADMIN_TITLE_DESCRIPTION;?></th> | ||
| 284 : | </tr> | ||
| 285 : | <?php | ||
| 286 : | $elements = $nokkaewManager->getContentElements(); | ||
| 287 : | $k=0; | ||
| 288 : | $i=0; | ||
| 289 : | foreach (array_values($elements) as $element ) { | ||
| 290 : | $key = $element->referenceInformation['tablename']; | ||
| 291 : | ?> | ||
| 292 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 293 : | <td width="20"> | ||
| 294 : | <?php if ($element->checked_out && $element->checked_out != $my->id) { ?> | ||
| 295 : | | ||
| 296 : | <?php } else { ?> | ||
| 297 : | <input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $key; ?>" onclick="isChecked(this.checked);" /> | ||
| 298 : | <?php } ?> | ||
| 299 : | </td> | ||
| 300 : | <td> | ||
| 301 : | <a href="#edit" onclick="return listItemTask('cb<?php echo $i;?>','edit')"><?php echo $element->Name; ?></a> | ||
| 302 : | </td> | ||
| 303 : | <td><?php echo $element->Author ? $element->Author : ' '; ?></td> | ||
| 304 : | <td><?php echo $element->Version ? $element->Version : ' '; ?></td> | ||
| 305 : | <td><?php echo $element->Description ? $element->Description : ' '; ?></td> | ||
| 306 : | <?php | ||
| 307 : | $k = 1 - $k; | ||
| 308 : | $i++; | ||
| 309 : | } | ||
| 310 : | ?> | ||
| 311 : | </tr> | ||
| 312 : | <tr> | ||
| 313 : | <th align="center" colspan="10"> <?php echo $pageNav->writePagesLinks(); ?></th> | ||
| 314 : | </tr> | ||
| 315 : | <tr> | ||
| 316 : | <td align="center" colspan="10"> <?php echo $pageNav->writePagesCounter(); ?></td> | ||
| 317 : | </tr> | ||
| 318 : | </table> | ||
| 319 : | <?php | ||
| 320 : | HTML_nokkaew::_MamboFooter($act, $option); | ||
| 321 : | } | ||
| 322 : | |||
| 323 : | function showElementConfiguration( $nokkaewManager, $id ) { | ||
| 324 : | global $my, $act, $task, $database, $option, $mosConfig_live_site; | ||
| 325 : | HTML_nokkaew::_MamboHeader(); | ||
| 326 : | $contentElement = $nokkaewManager->getContentElement( $id ); | ||
| 327 : | ?> | ||
| 328 : | <table cellpadding="4" cellspacing="0" border="0" width="100%"> | ||
| 329 : | <tr> | ||
| 330 : | <td width="100%" class="sectionname"> | ||
| 331 : | <img src="<?php echo $mosConfig_live_site;?>/components/com_nokkaew/images/nokkaew.png" alt="" width="200" height="58" border="0"><br /> | ||
| 332 : | </td> | ||
| 333 : | </table> | ||
| 334 : | <table cellpadding="3" cellspacing="0" border="0" width="100%"> | ||
| 335 : | <tr> | ||
| 336 : | <td width="100%"> | ||
| 337 : | <?php | ||
| 338 : | $tabs = new mosTabs(0); | ||
| 339 : | $tabs->startPane("contentelements"); | ||
| 340 : | $tabs->startTab(_NOKKAEW_ADMIN_ELEMENT_CONFIG,"ElementConfig-page"); | ||
| 341 : | ?> | ||
| 342 : | <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm"> | ||
| 343 : | <tr> | ||
| 344 : | <td class="sectionname" colspan="3"><h3><?php echo _NOKKAEW_ADMIN_COMMONINFORMATION;?></h3></td> | ||
| 345 : | </tr> | ||
| 346 : | <tr align="center" valign="middle"> | ||
| 347 : | <td width="30%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_TITLE_NAME;?></strong></td> | ||
| 348 : | <td width="20%" align="left" valign="top"><?php echo $contentElement->Name;?></td> | ||
| 349 : | <td align="left"></td> | ||
| 350 : | </tr> | ||
| 351 : | <tr align="center" valign="middle"> | ||
| 352 : | <td width="30%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_TITLE_AUTHOR;?></strong></td> | ||
| 353 : | <td width="20%" align="left" valign="top"><?php echo $contentElement->Author;?></td> | ||
| 354 : | <td align="left"></td> | ||
| 355 : | </tr> | ||
| 356 : | <tr align="center" valign="middle"> | ||
| 357 : | <td width="30%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_TITLE_VERSION;?></strong></td> | ||
| 358 : | <td width="20%" align="left" valign="top"><?php echo $contentElement->Version;?></td> | ||
| 359 : | <td align="left"></td> | ||
| 360 : | </tr> | ||
| 361 : | <tr align="center" valign="middle"> | ||
| 362 : | <td width="30%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_TITLE_DESCRIPTION;?></strong></td> | ||
| 363 : | <td width="20%" align="left" valign="top"><?php echo $contentElement->Description;?></td> | ||
| 364 : | <td align="left"></td> | ||
| 365 : | </tr> | ||
| 366 : | </table> | ||
| 367 : | <?php | ||
| 368 : | $tabs->endTab(); | ||
| 369 : | $tabs->startTab(_NOKKAEW_ADMIN_ELEMENT_REFERENCE,"ElementReference-page"); | ||
| 370 : | |||
| 371 : | $contentTable = $contentElement->getTable(); | ||
| 372 : | ?> | ||
| 373 : | <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm"> | ||
| 374 : | <tr> | ||
| 375 : | <td class="sectionname" colspan="2"><h3><?php echo _NOKKAEW_ADMIN_DATABASEINFORMATION;?></h3></td> | ||
| 376 : | </tr> | ||
| 377 : | <tr align="center" valign="middle"> | ||
| 378 : | <td width="15%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_DATABASETABLE;?></strong><br /><?php echo _NOKKAEW_ADMIN_DATABASETABLE_HELP;?></td> | ||
| 379 : | <td width="60%" align="left" valign="top"><?php echo $contentTable->Name;?></td> | ||
| 380 : | </tr> | ||
| 381 : | <tr align="center" valign="middle"> | ||
| 382 : | <td width="15%" align="left" valign="top"><strong><?php echo _NOKKAEW_ADMIN_DATABASEFIELDS;?></strong><br /><?php echo _NOKKAEW_ADMIN_DATABASEFIELDS_HELP;?></td> | ||
| 383 : | <td width="60%" align="left" valign="top"> | ||
| 384 : | <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> | ||
| 385 : | <tr> | ||
| 386 : | <th><?php echo _NOKKAEW_ADMIN_DBFIELDNAME;?></th> | ||
| 387 : | <th><?php echo _NOKKAEW_ADMIN_DBFIELDTYPE;?></th> | ||
| 388 : | <th><?php echo _NOKKAEW_ADMIN_DBFIELDLABLE;?></th> | ||
| 389 : | <th><?php echo _NOKKAEW_ADMIN_TRANSLATE;?></th> | ||
| 390 : | </tr> | ||
| 391 : | <?php | ||
| 392 : | $k=0; | ||
| 393 : | foreach( $contentTable->Fields as $tableField ) { | ||
| 394 : | ?> | ||
| 395 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 396 : | <td><?php echo $tableField->Name ? $tableField->Name : " ";?></td> | ||
| 397 : | <td><?php echo $tableField->Type ? $tableField->Type : " ";?></td> | ||
| 398 : | <td><?php echo $tableField->Lable ? $tableField->Lable : " ";?></td> | ||
| 399 : | <td><?php echo $tableField->Translate ? _CMN_YES : _CMN_NO;?></td> | ||
| 400 : | </tr> | ||
| 401 : | <?php | ||
| 402 : | $k=1-$k; | ||
| 403 : | } | ||
| 404 : | ?> | ||
| 405 : | </table> | ||
| 406 : | <?php | ||
| 407 : | ?> | ||
| 408 : | </td> | ||
| 409 : | </tr> | ||
| 410 : | </table> | ||
| 411 : | <?php | ||
| 412 : | $tabs->endTab(); | ||
| 413 : | $tabs->startTab(_NOKKAEW_ADMIN_ELEMENT_SAMPLES,"ElementSamples-page"); | ||
| 414 : | $contentTable = $contentElement->getTable(); | ||
| 415 : | ?> | ||
| 416 : | <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm"> | ||
| 417 : | <tr> | ||
| 418 : | <td class="sectionname"><h3><?php echo _NOKKAEW_ADMIN_ELEMENT_SAMPLES;?></h3></td> | ||
| 419 : | </tr> | ||
| 420 : | <tr align="center" valign="middle"> | ||
| 421 : | <td width="100%" align="center" valign="top"> | ||
| 422 : | <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> | ||
| 423 : | <tr> | ||
| 424 : | <?php | ||
| 425 : | $sqlFields = ""; | ||
| 426 : | foreach( $contentTable->Fields as $tableField ) { | ||
| 427 : | if( $sqlFields!='' ) $sqlFields .= ','; | ||
| 428 : | $sqlFields .= '`' .$tableField->Name. '`'; | ||
| 429 : | ?> | ||
| 430 : | <th nowrap><?php echo $tableField->Lable;?></th> | ||
| 431 : | <?php | ||
| 432 : | } | ||
| 433 : | ?> | ||
| 434 : | </tr> | ||
| 435 : | <?php | ||
| 436 : | $k=0; | ||
| 437 : | $sql = "SELECT $sqlFields" | ||
| 438 : | . "\nFROM #__" .$contentTable->Name | ||
| 439 : | . "\nORDER BY id limit 0,10"; | ||
| 440 : | $database->setQuery( $sql ); | ||
| 441 : | $rows = $database->loadObjectList(); | ||
| 442 : | foreach ($rows as $row) { | ||
| 443 : | ?> | ||
| 444 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 445 : | <?php | ||
| 446 : | foreach( $contentTable->Fields as $tableField ) { | ||
| 447 : | $fieldName = $tableField->Name; | ||
| 448 : | $fieldValue = $row->$fieldName; | ||
| 449 : | if( $tableField->Type='htmltext' ) { | ||
| 450 : | $fieldValue = htmlspecialchars( $fieldValue ); | ||
| 451 : | } | ||
| 452 : | |||
| 453 : | if( $fieldValue=='' ) $fieldValue=" "; | ||
| 454 : | if( strlen($fieldValue) > 97 ) { | ||
| 455 : | $fieldValue = substr( $fieldValue, 0, 100) . '...'; | ||
| 456 : | } | ||
| 457 : | |||
| 458 : | ?> | ||
| 459 : | <td valign="top"><?php echo $fieldValue;?></td> | ||
| 460 : | <?php | ||
| 461 : | } | ||
| 462 : | ?> | ||
| 463 : | </tr> | ||
| 464 : | <?php | ||
| 465 : | $k=1-$k; | ||
| 466 : | } | ||
| 467 : | ?> | ||
| 468 : | </table> | ||
| 469 : | <?php | ||
| 470 : | ?> | ||
| 471 : | </td> | ||
| 472 : | </tr> | ||
| 473 : | </table> | ||
| 474 : | <?php | ||
| 475 : | $tabs->endTab(); | ||
| 476 : | $tabs->endPane(); | ||
| 477 : | ?> | ||
| 478 : | </td></tr> | ||
| 479 : | </table> | ||
| 480 : | <?php | ||
| 481 : | HTML_nokkaew::_MamboFooter($act, $option); | ||
| 482 : | } | ||
| 483 : | |||
| 484 : | |||
| 485 : | andphe | 7 | //================ Updated by FreShyNice GiRL --> 24 Jun 2007 ===================== |
| 486 : | function showTranslationOverview( $rows, $search, $pageNav, $langlist, $clist, $catid , $filterlist=array()) { | ||
| 487 : | global $my, $act, $task, $database, $option, $mosConfig_live_site; | ||
| 488 : | |||
| 489 : | andphe | 3 | HTML_nokkaew::_MamboHeader(); |
| 490 : | ?> | ||
| 491 : | <table cellpadding="4" cellspacing="0" border="0" width="100%"> | ||
| 492 : | <tr> | ||
| 493 : | <td width="100%" class="sectionname"> | ||
| 494 : | <img src="<?php echo $mosConfig_live_site;?>/components/com_nokkaew/images/nokkaew.png" alt="" width="200" height="58" border="0"><br /> | ||
| 495 : | </td> | ||
| 496 : | <td nowrap><?php echo _NOKKAEW_ADMIN_TITLE_DISPLAY;?>:</td> | ||
| 497 : | <td> <?php echo $pageNav->writeLimitBox(); ?> </td> | ||
| 498 : | <td nowrap><?php echo _NOKKAEW_ADMIN_TITLE_LANGUAGE;?>:</td> | ||
| 499 : | <td width="right"><?php echo $langlist;?></td> | ||
| 500 : | <td nowrap><?php echo _NOKKAEW_ADMIN_TITLE_CONTENTELEMENTS;?>:</td> | ||
| 501 : | <td width="right"><?php echo $clist;?></td> | ||
| 502 : | andphe | 7 | </tr> |
| 503 : | <tr> | ||
| 504 : | <td colspan="7" align="right" valign="top"> | ||
| 505 : | <table><tr> | ||
| 506 : | <?php | ||
| 507 : | if (isset($filterlist) && count($filterlist)>0){ | ||
| 508 : | foreach ($filterlist as $fl){ | ||
| 509 : | if (is_array($fl)) { | ||
| 510 : | echo "<td nowrap align='center'>".$fl["title"].":<br/>".$fl["html"]."</td>"; | ||
| 511 : | } | ||
| 512 : | } | ||
| 513 : | } | ||
| 514 : | ?> | ||
| 515 : | </tr></table> | ||
| 516 : | </td> | ||
| 517 : | andphe | 3 | </tr> |
| 518 : | </table> | ||
| 519 : | |||
| 520 : | <?php | ||
| 521 : | if( !isset($catid) || $catid == "" ) { | ||
| 522 : | ?> | ||
| 523 : | <p><?php echo _NOKKAEW_NOELEMENT_SELECTED;?></p> | ||
| 524 : | <?php | ||
| 525 : | } | ||
| 526 : | else { | ||
| 527 : | ?> | ||
| 528 : | <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> | ||
| 529 : | <tr> | ||
| 530 : | <th width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" /></th> | ||
| 531 : | <th class="title" width="20%" align="left" nowrap="nowrap"><?php echo _NOKKAEW_ADMIN_TITLE_TITLE;?></th> | ||
| 532 : | <th width="10%" align="left" nowrap="nowrap"><?php echo _NOKKAEW_ADMIN_TITLE_LANGUAGE;?></th> | ||
| 533 : | <th width="20%" align="left" nowrap="nowrap"><?php echo _NOKKAEW_ADMIN_TITLE_TRANSLATION;?></th> | ||
| 534 : | <th width="15%" align="left" nowrap="nowrap"><?php echo _NOKKAEW_ADMIN_TITLE_DATECHANGED;?></th> | ||
| 535 : | <th width="15%" nowrap="nowrap" align="center"><?php echo _NOKKAEW_ADMIN_TITLE_STATE;?></th> | ||
| 536 : | andphe | 7 | <th align="center" nowrap="nowrap"><?php echo _NOKKAEW_ADMIN_TITLE_PUBLISHED;?></th> |
| 537 : | andphe | 3 | </tr> |
| 538 : | <?php | ||
| 539 : | $k=0; | ||
| 540 : | $i=0; | ||
| 541 : | andphe | 11 | foreach ((array)$rows as $row ) { |
| 542 : | andphe | 3 | ?> |
| 543 : | <tr class="<?php echo "row$k"; ?>"> | ||
| 544 : | <td width="20"> | ||
| 545 : | <?php if ($row->checked_out && $row->checked_out != $my->id) { ?> | ||
| 546 : | | ||
| 547 : | <?php } else { ?> | ||
| 548 : | <input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>|<?php echo $row->language_id; ?>" onclick="isChecked(this.checked);" /> | ||
| 549 : | <?php } ?> | ||
| 550 : | </td> | ||
| 551 : | <td> | ||
| 552 : | <a href="#edit" onclick="return listItemTask('cb<?php echo $i;?>','edit')"><?php echo $row->title; ?></a> | ||
| 553 : | </td> | ||
| 554 : | <td nowrap><?php echo $row->language ? $row->language : _NOKKAEW_NOTRANSLATIONYET; ?></td> | ||
| 555 : | <td><?php echo $row->titleTranslation ? $row->titleTranslation : ' '; ?></td> | ||
| 556 : | <!-- <td><?php echo $row->lastchanged ? strftime($row->lastchanged, _DATE_FORMAT_LC) : ' '; ?></td> --> | ||
| 557 : | <td><?php echo $row->lastchanged ? strftime(_DATE_FORMAT_LC,strftime(strtotime($row->lastchanged))) : ' '; ?></td> | ||
| 558 : | <?php | ||
| 559 : | switch( $row->state ) { | ||
| 560 : | case 1: | ||
| 561 : | $img = 'status_g.png'; | ||
| 562 : | break; | ||
| 563 : | case 0: | ||
| 564 : | $img = 'status_y.png'; | ||
| 565 : | break; | ||
| 566 : | case -1: | ||
| 567 : | default: | ||
| 568 : | $img = 'status_r.png'; | ||
| 569 : | break; | ||
| 570 : | } | ||
| 571 : | ?> | ||
| 572 : | <td align="center"><img src="components/com_nokkaew/images/<?php echo $img;?>" width="12" height="12" border="0" alt="" /></td> | ||
| 573 : | <?php | ||
| 574 : | if (isset($row->published) && $row->published) { | ||
| 575 : | $img = 'publish_g.png'; | ||
| 576 : | } else { | ||
| 577 : | $img = 'publish_x.png'; | ||
| 578 : | } | ||
| 579 : | |||
| 580 : | $href=''; | ||
| 581 : | if( $row->state>=0 ) { | ||
| 582 : | $href = '<a href="javascript: void(0);" '; | ||
| 583 : | $href .= 'onClick="return listItemTask(\'cb' .$i. '\',\'' .($row->published ? 'unpublish' : 'publish'). '\')">'; | ||
| 584 : | $href .= '<img src="images/' .$img. '" width="12" height="12" border="0" alt="" />'; | ||
| 585 : | $href .= '</a>'; | ||
| 586 : | } | ||
| 587 : | else { | ||
| 588 : | $href = '<img src="images/' .$img. '" width="12" height="12" border="0" alt="" />'; | ||
| 589 : | } | ||
| 590 : | ?> | ||
| 591 : | <td align="center"><?php echo $href;?></td> | ||
| 592 : | <?php | ||
| 593 : | $k = 1 - $k; | ||
| 594 : | $i++; | ||
| 595 : | } | ||
| 596 : | ?> | ||
| 597 : | <tr> | ||
| 598 : | <th align="center" colspan="10"> <?php echo $pageNav->writePagesLinks(); ?></th> | ||
| 599 : | </tr> | ||
| 600 : | <tr> | ||
| 601 : | <td align="center" colspan="10"> <?php echo $pageNav->writePagesCounter(); ?></td> | ||
| 602 : | </tr> | ||
| 603 : | </table> | ||
| 604 : | <br /> | ||
| 605 : | <table cellspacing="0" cellpadding="4" border="0" align="center"> | ||
| 606 : | <tr align="center"> | ||
| 607 : | <td> <img src="components/com_nokkaew/images/status_g.png" width="12" height="12" border=0 alt="<?php echo _NOKKAEW_STATE_OK;?>" /> | ||
| 608 : | </td> | ||
| 609 : | <td> <?php echo _NOKKAEW_TRANSLATION_UPTODATE;?> |</td> | ||
| 610 : | <td> <img src="components/com_nokkaew/images/status_y.png" width="12" height="12" border=0 alt="<?php echo _NOKKAEW_STATE_CHANGED;?>" /> | ||
| 611 : | </td> | ||
| 612 : | <td> <?php echo _NOKKAEW_TRANSLATION_INCOMPLETE;?> |</td> | ||
| 613 : | <td> <img src="components/com_nokkaew/images/status_r.png" width="12" height="12" border=0 alt="<?php echo _NOKKAEW_STATE_NOTEXISTING;?>" /> | ||
| 614 : | </td> | ||
| 615 : | <td> <?php echo _NOKKAEW_TRANSLATION_NOT_EXISTING;?></td> | ||
| 616 : | </tr> | ||
| 617 : | <tr align="center"> | ||
| 618 : | <td> <img src="images/publish_g.png" width="12" height="12" border=0 alt="Translation visible" /> | ||
| 619 : | </td> | ||
| 620 : | <td> <?php echo _NOKKAEW_TRANSLATION_PUBLISHED;?> |</td> | ||
| 621 : | <td> <img src="images/publish_x.png" width="12" height="12" border=0 alt="Finished" /> | ||
| 622 : | </td> | ||
| 623 : | <td> <?php echo _NOKKAEW_TRANSLATION_NOT_PUBLISHED;?> </td> | ||
| 624 : | <td> | ||
| 625 : | </td> | ||
| 626 : | <td> <?php echo _NOKKAEW_STATE_TOGGLE;?> </td> | ||
| 627 : | </tr> | ||
| 628 : | </table> | ||
| 629 : | <?php | ||
| 630 : | } | ||
| 631 : | HTML_nokkaew::_MamboFooter($act, $option); | ||
| 632 : | } | ||
| 633 : | |||
| 634 : | /** | ||
| 635 : | * @return void | ||
| 636 : | * @param object $actContentObject | ||
| 637 : | * @param array $langlist | ||
| 638 : | * @param string $catid | ||
| 639 : | * @desc Shows the dialog for the content translation | ||
| 640 : | */ | ||
| 641 : | andphe | 7 | function showTranslation( $actContentObject, $langlist, $catid , $select_id , $tranFilters) { |
| 642 : | andphe | 3 | global $my, $act, $task, $database, $option, $select_language_id, $mosConfig_live_site; |
| 643 : | $elementTable = $actContentObject->getTable(); | ||
| 644 : | |||
| 645 : | HTML_nokkaew::_MamboHeader(); | ||
| 646 : | |||
| 647 : | $editorFields=null; | ||
| 648 : | andphe | 7 | |
| 649 : | foreach ($tranFilters as $filter) { | ||
| 650 : | echo "<input type='hidden' name='".$filter->filterType."_filter_value' value='".$filter->filter_value."'/>"; | ||
| 651 : | } | ||
| 652 : | |||
| 653 : | //echo "TRAN=".$tranFilters; | ||
| 654 : | // check system and user editor and load appropriate copying script | ||
| 655 : | global $mosConfig_editor, $adminPath, $my; | ||
| 656 : | // Per User Editor selection | ||
| 657 : | $editorParams = new mosParameters( $my->params ); | ||
| 658 : | $editor = $editorParams->get( 'editor', '' ); | ||
| 659 : | if (!$editor) { | ||
| 660 : | $editor = $mosConfig_editor; | ||
| 661 : | } | ||
| 662 : | echo "\n<!-- editor is $editor //-->\n"; | ||
| 663 : | $editorFile = $adminPath."/editors/".strtolower($editor).".php"; | ||
| 664 : | if (file_exists($editorFile)){ | ||
| 665 : | require_once($editorFile); | ||
| 666 : | } | ||
| 667 : | else { | ||
| 668 : | andphe | 3 | ?> |
| 669 : | andphe | 7 | |
| 670 : | <script language="javascript" type="text/javascript"> | ||
| 671 : | function copyToClipboard(value,action) { | ||
| 672 : | try { | ||
| 673 : | if (document.getElementById) { | ||
| 674 : | innerHTML=""; | ||
| 675 : | if (action=="copy") { | ||
| 676 : | srcEl = document.getElementById("original_value_"+value); | ||
| 677 : | innerHTML = srcEl.innerHTML; | ||
| 678 : | } | ||
| 679 : | if (window.clipboardData){ | ||
| 680 : | window.clipboardData.setData("Text",innerHTML); | ||
| 681 : | alert("<?php echo _NOKKAEW_ADMIN_CLIPBOARD_COPIED?>"); | ||
| 682 : | } | ||
| 683 : | else { | ||
| 684 : | srcEl = document.getElementById("text_origText_"+value); | ||
| 685 : | srcEl.value = innerHTML; | ||
| 686 : | srcEl.select(); | ||
| 687 : | alert("<?php echo _NOKKAEW_ADMIN_CLIPBOARD_COPY?>"); | ||
| 688 : | } | ||
| 689 : | } | ||
| 690 : | } | ||
| 691 : | catch(e){ | ||
| 692 : | alert("<?php echo _NOKKAEW_ADMIN_CLIPBOARD_NOSUPPORT?>"); | ||
| 693 : | } | ||
| 694 : | } | ||
| 695 : | </script> | ||
| 696 : | <?php | ||
| 697 : | } | ||
| 698 : | ?> | ||
| 699 : | andphe | 3 | <table cellpadding="4" cellspacing="0" border="0" width="100%"> |
| 700 : | <tr> | ||
| 701 : | <td width="100%" class="sectionname"> | ||
| 702 : | <img src="<?php echo $mosConfig_live_site;?>/components/com_nokkaew/images/nokkaew.png" alt="" width="200" height="58" border="0"><br /> | ||
| 703 : | </td> | ||
| 704 : | </table> | ||
| 705 : | <table cellpadding="3" cellspacing="0" border="0" width="100%"> | ||
| 706 : | <tr> | ||
| 707 : | <td width="100%"> | ||
| 708 : | <?php | ||
| 709 : | $tabs = new mosTabs(0); | ||
| 710 : | $tabs->startPane("translation"); | ||
| 711 : | $tabs->startTab(_NOKKAEW_TRANSLATION,"Translation-page"); | ||
| 712 : | ?> | ||
| 713 : | <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm"> | ||
| 714 : | <tr><td valign="top"> | ||
| 715 : | <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm" align="center"> | ||
| 716 : | <tr align="center" valign="middle"> | ||
| 717 : | <th width="10%" align="left" valign="top"><?php echo _NOKKAEW_ADMIN_DBFIELDLABLE;?></th> | ||
| 718 : | <th width="45%" align="left" valign="top"><?php echo _NOKKAEW_ORIGINAL;?></th> | ||
| 719 : | <th width="45%" align="left" valign="top" colspan="2"><?php echo _NOKKAEW_TRANSLATION;?></th> | ||
| 720 : | </tr> | ||
| 721 : | <?php | ||
| 722 : | $k=1; | ||
| 723 : | for( $i=0; $i<count($elementTable->Fields); $i++ ) { | ||
| 724 : | $field =& $elementTable->Fields[$i]; | ||
| 725 : | $originalValue = $field->originalValue; | ||
| 726 : | |||
| 727 : | if( $field->Translate ) { | ||
| 728 : | $translationContent = $field->translationContent; | ||
| 729 : | mosMakeHtmlSafe( $translationContent ); | ||
| 730 : | ?> | ||
| 731 : | <tr align="center" valign="middle" "class="<?php echo "row$k"; ?>"> | ||
| 732 : | <td align="left" valign="top"><?php echo $field->Lable;?></td> | ||
| 733 : | <td align="left" valign="top"><?php echo $field->originalValue;?></td> | ||
| 734 : | <td align="left" valign="top"> | ||
| 735 : | <input type="hidden" name="id_<?php echo $field->Name;?>" value="<?php echo $translationContent->id;?>" /> | ||
| 736 : | <?php | ||
| 737 : | if( strtolower($field->Type)=='text' || strtolower($field->Type)=='titletext' ) { | ||
| 738 : | ?> | ||
| 739 : | <input type="hidden" name="origValue_<?php echo $field->Name;?>" value="<?php echo htmlspecialchars($field->originalValue, ENT_QUOTES);?>" /> | ||
| 740 : | <input class="inputbox" type="text" name="refField_<?php echo $field->Name;?>" size="60" maxlength="100" value="<?php echo $translationContent->value; ?>" /> | ||
| 741 : | |||
| 742 : | <?php | ||
| 743 : | } else if( strtolower($field->Type)=='textarea' ) { | ||
| 744 : | ?> | ||
| 745 : | <input type="hidden" name="origValue_<?php echo $field->Name;?>" value="<?php echo htmlspecialchars($field->originalValue, ENT_QUOTES);?>" /> | ||
| 746 : | <textarea name="refField_<?php echo $field->Name;?>" rows="15" cols="30"><?php echo $translationContent->value; ?></textarea> | ||
| 747 : | <?php | ||
| 748 : | } else if( strtolower($field->Type)=='htmltext' ) { | ||
| 749 : | ?> | ||
| 750 : | <input type="hidden" name="origValue_<?php echo $field->Name;?>" value="<?php echo htmlspecialchars($field->originalValue, ENT_QUOTES);?>" /> | ||
| 751 : | <?php | ||
| 752 : | $editorFields[] = array( "editor_".$field->Name, "refField_".$field->Name ); | ||
| 753 : | // parameters : areaname, content, hidden field, width, height, rows, cols | ||
| 754 : | editorArea( "editor_".$field->Name, $translationContent->value , "refField_".$field->Name, 500, 200, '70', '15' ) ; | ||
| 755 : | } | ||
| 756 : | ?> | ||
| 757 : | </td> | ||
| 758 : | <td valign="top"> | ||
| 759 : | <?php if( strtolower($field->Type)!='htmltext' ) {?> | ||
| 760 : | <a class="toolbar" onclick="document.adminForm.refField_<?php echo $field->Name;?>.value = document.adminForm.origValue_<?php echo $field->Name;?>.value;" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('copy_<?php echo $field->Name;?>','','images/move_f2.png',1);"><img src="images/move.png" alt="<?php echo _NOKKAEW_COPY;?>" border="0" name="copy_<?php echo $field->Name;?>" align="middle" /></a> | ||
| 761 : | <a class="toolbar" onclick="document.adminForm.refField_<?php echo $field->Name;?>.value = '';" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('clear_<?php echo $field->Name;?>','','images/delete_f2.png',1);"><img src="images/delete.png" alt="<?php echo _NOKKAEW_CLEAR;?>" border="0" name="clear_<?php echo $field->Name;?>" align="middle" /></a> | ||
| 762 : | <?php } else {?> | ||
| 763 : | <!-- | ||
| 764 : | <a class="toolbar" onclick="editor_setHTML('refField_<?php echo $field->Name;?>', document.adminForm.origValue_<?php echo $field->Name;?>.value); document.adminForm.refField_<?php echo $field->Name;?>.value = document.adminForm.origValue_<?php echo $field->Name;?>.value;" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('copy_<?php echo $field->Name;?>','','images/move_f2.png',1);"><img src="images/move.png" alt="<?php echo _NOKKAEW_COPY;?>" border="0" name="copy_<?php echo $field->Name;?>" align="middle" /></a> | ||
| 765 : | <a class="toolbar" onclick="editor_setHTML('refField_<?php echo $field->Name;?>', ''); document.adminForm.refField_<?php echo $field->Name;?>.value = '';" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('clear_<?php echo $field->Name;?>','','images/delete_f2.png',1);"><img src="images/delete.png" alt="<?php echo _NOKKAEW_CLEAR;?>" border="0" name="clear_<?php echo $field->Name;?>" align="middle" /></a> | ||
| 766 : | --> | ||
| 767 : | <?php }?> | ||
| 768 : | </td> | ||
| 769 : | </tr> | ||
| 770 : | <?php | ||
| 771 : | } | ||
| 772 : | $k=1-$k; | ||
| 773 : | } | ||
| 774 : | ?> | ||
| 775 : | </table> | ||
| 776 : | </tr> | ||
| 777 : | </table> | ||
| 778 : | <?php | ||
| 779 : | $tabs->endTab(); | ||
| 780 : | $tabs->startTab(_NOKKAEW_ITEM_INFO,"ItemInfo-page"); | ||
| 781 : | ?> | ||
| 782 : | <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm"> | ||
| 783 : | <tr> | ||
| 784 : | <td width="34%"><strong><?php echo _NOKKAEW_ADMIN_TITLE_STATE;?>:</strong></td> | ||
| 785 : | <td width="50%"><?php echo $actContentObject->state > 0 ? _NOKKAEW_STATE_OK : ($actContentObject->state < 0 ? _NOKKAEW_STATE_NOTEXISTING : _NOKKAEW_STATE_CHANGED);?></td> | ||
| 786 : | </tr> | ||
| 787 : | <tr> | ||
| 788 : | <td><strong><?php echo _NOKKAEW_ADMIN_TITLE_LANGUAGE;?>:</strong></td> | ||
| 789 : | <td><?php echo $langlist;?></td> | ||
| 790 : | </tr> | ||
| 791 : | <tr> | ||
| 792 : | <td><strong><?php echo _NOKKAEW_ADMIN_TITLE_PUBLISHED;?>:</strong></td> | ||
| 793 : | <td><input type="checkbox" name="published" value="1" <?php echo $actContentObject->published&0x0001 ? 'checked="checked"' : ''; ?> /></td> | ||
| 794 : | </tr> | ||
| 795 : | <tr> | ||
| 796 : | <td><strong><?php echo _NOKKAEW_ADMIN_TITLE_DATECHANGED;?>:</strong></td> | ||
| 797 : | <!-- <td><?php echo strftime($actContentObject->lastchanged, "%A, %d %B %Y %H:%M");?></td> --> | ||
| 798 : | <td><?php echo $actContentObject->lastchanged ? strftime("%A, %d %B %Y %H:%M", strtotime($actContentObject->lastchanged)) : ' ' ;?></td> | ||
| 799 : | </tr> | ||
| 800 : | </table> | ||
| 801 : | <?php | ||
| 802 : | $tabs->endTab(); | ||
| 803 : | $tabs->endPane(); | ||
| 804 : | ?> | ||
| 805 : | <input type="hidden" name="select_language_id" value="<?php echo $select_language_id;?>" /> | ||
| 806 : | <input type="hidden" name="reference_id" value="<?php echo $actContentObject->id;?>" /> | ||
| 807 : | <input type="hidden" name="reference_table" value="<?php echo $elementTable->name;?>" /> | ||
| 808 : | <input type="hidden" name="catid" value="<?php echo $catid;?>" /> | ||
| 809 : | </td></tr> | ||
| 810 : | </table> | ||
| 811 : | <?php | ||
| 812 : | HTML_nokkaew::_MamboFooter($act, $option, $editorFields); | ||
| 813 : | } | ||
| 814 : | |||
| 815 : | |||
| 816 : | function _sideMenu() { | ||
| 817 : | global $mosConfig_live_site; | ||
| 818 : | ?> | ||
| 819 : | <td align="left" valign="top" nowrap><p><span class="contentheading">License:</span><br /> | ||
| 820 : | <img src="<?php echo $mosConfig_live_site;?>/images/M_images/arrow.png" alt="" width="9" height="9" border="0"> <a href="index2.php?option=com_nokkaew&act=showInformation&fileCode=gpllicense">GNU General Public License</a><br /> | ||
| 821 : | <br /> | ||
| 822 : | <span class="contentheading">Developer :</span> <br /> | ||
| 823 : | <img src="<?php echo $mosConfig_live_site;?>/images/M_images/arrow.png" alt="" width="9" height="9" border="0"><span class="style1"> Akarawuth Tamrareang</span><br /> | ||
| 824 : | <img src="<?php echo $mosConfig_live_site;?>/images/M_images/arrow.png" alt="" width="9" height="9" border="0"><span class="style1"> Pisan Chueachatchai </span><br /> | ||
| 825 : | <img src="<?php echo $mosConfig_live_site;?>/images/M_images/arrow.png" alt="" width="9" height="9" border="0"><span class="style1"> Supachai Teasakul </span><br /> | ||
| 826 : | <img src="<?php echo $mosConfig_live_site;?>/images/M_images/arrow.png" alt="" width="9" height="9" border="0"><span class="style1"> Andrés Felipe Vargas Valencia</span><br /> | ||
| 827 : | <img src="<?php echo $mosConfig_live_site;?>/images/M_images/arrow.png" alt="" width="9" height="9" border="0"><span class="style1"> Sansanee Luangchabarat </span><br /> | ||
| 828 : | we are welcome all developer to join us in this projects. | ||
| 829 : | <br>if you need to help us.please email to : <a href="mailto:nokkaewdev@gmail.com" class="smallgrey"><span class="smallgrey">nokkaewdev [at] gmail.com</span></a></p> | ||
| 830 : | <p><span class="contentheading">Additional Sites:</span><br /> | ||
| 831 : | <img src="<?php echo $mosConfig_live_site;?>/images/M_images/arrow.png" alt="" width="9" height="9" border="0"> <a href="http://sourceforge.net/projects/nokkaew/" target="_blank">Nokkaew Projects Site</a><br /> | ||
| 832 : | </p> | ||
| 833 : | </td> | ||
| 834 : | <?php | ||
| 835 : | } | ||
| 836 : | |||
| 837 : | |||
| 838 : | function _header() { | ||
| 839 : | global $mosConfig_live_site; | ||
| 840 : | ?> | ||
| 841 : | <script language="javascript" type="text/javascript"> | ||
| 842 : | function submitbutton(pressbutton) { | ||
| 843 : | var form = document.adminForm; | ||
| 844 : | if (pressbutton == 'cancel') { | ||
| 845 : | submitform( pressbutton ); | ||
| 846 : | return; | ||
| 847 : | } else { | ||
| 848 : | submitform( pressbutton ); | ||
| 849 : | } | ||
| 850 : | } | ||
| 851 : | </script> | ||
| 852 : | <form action="index2.php" method="post" name="adminForm"> | ||
| 853 : | <table width="90%" border="0" cellpadding="2" cellspacing="2" class="adminheading"> | ||
| 854 : | <tr><th width="100%" class="sectionname" align="left" colspan="2"> | ||
| 855 : | <img src="<?php echo $mosConfig_live_site;?>/components/com_nokkaew/images/nokkaew.png" alt="" width="200" height="58" border="0"> | ||
| 856 : | Nok Kaew | ||
| 857 : | </th></tr> | ||
| 858 : | </table> | ||
| 859 : | <table width="90%" border="0" cellpadding="2" cellspacing="2" class="adminform"> | ||
| 860 : | <?php | ||
| 861 : | } | ||
| 862 : | |||
| 863 : | function _footer($act, $option) { | ||
| 864 : | ?> | ||
| 865 : | <td align="left" valign="bottom"><span class="smallgrey"><strong>Special Thank : Alex Kempkens </strong></span><span class="smallgrey"></span><br /> | ||
| 866 : | |||
| 867 : | <br /> | ||
| 868 : | <span class="smallgrey"><strong>Contact:</strong></span><br /> | ||
| 869 : | <a href="mailto:nokkaewdev@gmail.com" class="smallgrey"><span class="smallgrey">nokkaewdev [at] gmail.com</span></a><br /> | ||
| 870 : | <br /> | ||
| 871 : | <span class="smallgrey"><strong>Version:</strong></span><br /> | ||
| 872 : | <span class="smallgrey"><?php echo NokKaewManager::getVersion();?></span><br /> | ||
| 873 : | <br /> | ||
| 874 : | <span class="smallgrey"><strong>Copyright:</strong></span><br /> | ||
| 875 : | Copyright ( c) <a href="http://www.mambohub.com">MamboHub.com </a><br /> | ||
| 876 : | under GNU/GPL </td> | ||
| 877 : | </tr> | ||
| 878 : | </table> | ||
| 879 : | |||
| 880 : | <input type="hidden" name="task" value="" /> | ||
| 881 : | <input type="hidden" name="act" value="<?php echo $act; ?>" /> | ||
| 882 : | <input type="hidden" name="option" value="<?php echo $option; ?>" /> | ||
| 883 : | </form> | ||
| 884 : | <?php | ||
| 885 : | } | ||
| 886 : | |||
| 887 : | function _MamboHeader() { | ||
| 888 : | ?> | ||
| 889 : | <form action="index2.php" method="post" name="adminForm"> | ||
| 890 : | <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> | ||
| 891 : | <table width="100%" border="0"> | ||
| 892 : | <?php | ||
| 893 : | } | ||
| 894 : | |||
| 895 : | function _MamboFooter($act, $option, $editorFields=null) { | ||
| 896 : | ?> | ||
| 897 : | <input type="hidden" name="boxchecked" value="0" /> | ||
| 898 : | <input type="hidden" name="task" value="" /> | ||
| 899 : | <input type="hidden" name="act" value="<?php echo $act; ?>" /> | ||
| 900 : | <input type="hidden" name="option" value="<?php echo $option; ?>" /> | ||
| 901 : | </form> | ||
| 902 : | <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js"></script> | ||
| 903 : | <script language="javascript" type="text/javascript"> | ||
| 904 : | function submitbutton(pressbutton) { | ||
| 905 : | var form = document.adminForm; | ||
| 906 : | <? | ||
| 907 : | if( isset($editorFields) && is_array($editorFields) ) { | ||
| 908 : | foreach ($editorFields as $editor) { | ||
| 909 : | // Where editor[0] = your areaname and editor[1] = the field name | ||
| 910 : | getEditorContents( $editor[0], $editor[1]) ; | ||
| 911 : | } | ||
| 912 : | } | ||
| 913 : | ?> | ||
| 914 : | if (pressbutton == 'cancel') { | ||
| 915 : | submitform( pressbutton ); | ||
| 916 : | return; | ||
| 917 : | } else { | ||
| 918 : | submitform( pressbutton ); | ||
| 919 : | } | ||
| 920 : | } | ||
| 921 : | </script> | ||
| 922 : | <table width="100%" border="0"> | ||
| 923 : | <tr> | ||
| 924 : | <td align="right" valign="top" width="33%"> | ||
| 925 : | <span class="smallgrey"><strong>Contact:</strong></span><br /> | ||
| 926 : | <a href="mailto:nokkaewdev@gmail.com" class="smallgrey"><span class="smallgrey">nokkaewdev [at] gmail.com</span></a> | ||
| 927 : | </td> | ||
| 928 : | <td align="center" valign="top" width="33%"> | ||
| 929 : | <span class="smallgrey"><strong>Version:</strong></span><br /> | ||
| 930 : | <span class="smallgrey"><?php echo NokKaewManager::getVersion();?></span><br /> | ||
| 931 : | </td> | ||
| 932 : | <td align="left" valign="top" width="33%"> | ||
| 933 : | <span class="smallgrey"><strong>Copyright:</strong></span><br /> | ||
| 934 : | Copyright ( c) <a href="http://www.mambohub.com">MamboHub.com </a><br /> | ||
| 935 : | under GNU/GPL </td> | ||
| 936 : | </tr> | ||
| 937 : | </table> | ||
| 938 : | </div> | ||
| 939 : | <?php | ||
| 940 : | } | ||
| 941 : | } | ||
| 942 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

