" <?php echo $selected; ?> ><?php echo $category->catName_i18n; ?> </option> <?php } ?> </select> </div> </div> <div class="row"> <label><?php echo _t('Body') . ' (' . _langName($lang) . ')' . $lc_reqSign; ?> </label> <div><textarea id="txtBody" name="txtBody" cols="130" rows="15" class="<?php echo $lang; ?> "><?php echo $post->postBody; ?> </textarea></div> </div> <div class="row"> <button type="submit" class="submit button green" id="btnSave" name="btnSave"><?php echo _t('Save'); ?> </button>
?> )</label> </td> <?php if ($langs) { ?> <?php foreach ($langs as $lcode => $lname) { ?> <td> <span>Name</span> <?php if (_langName($lcode)) { ?> <label class="lang">(<?php echo _langName($lcode); ?> )</label> <?php } ?> </td> <?php } ?> <?php } ?> </tr> <?php while ($row = $qb->fetchRow()) {
$lang = _urlLang($lang); if ($qb->getNumRows()) { ?> <table cellpadding="0" cellspacing="0" border="0" class="list news"> <tr class="label"> <td class="tableLeft" colspan="2"><?php echo _t('Actions'); ?> </td> <td> <span><?php echo _t('Title'); ?> </span> <label class="lang">(<?php echo _langName($lang); ?> )</label> </td> <td><?php echo _t('Author'); ?> </td> <td><?php echo _t('Category'); ?> </td> <td><?php echo _t('Date'); ?> </td>
<?php $success = false; if (sizeof($_POST)) { $post = _post($_POST); extract($post); if (isset($action) && $action == 'delete' && isset($hidDeleteId) && $hidDeleteId) { # DELETE category if (db_delete('category', array('catId' => $hidDeleteId))) { $success = true; } } else { # NEW/EDIT $validations = array('txtName' => array('caption' => _t('Name') . ' (' . _langName($lc_defaultLang) . ')', 'value' => $txtName, 'rules' => array('mandatory'), 'parameters' => array($hidEditId))); if (form_validate($validations)) { if ($hidEditId) { $data = array('catId' => $hidEditId, 'catName' => $txtName); # Get translation strings for "catName" $data = array_merge($data, _postTranslationStrings($post, array('catName' => 'txtName'))); if (db_update('category', $data, false)) { $success = true; } } else { $data = array('catName' => $txtName); # Get translation strings for "pptName" $data = array_merge($data, _postTranslationStrings($post, array('catName' => 'txtName'))); if (db_insert('category', $data)) { $success = true; } } } else {