| version 1.5, 2007/08/21 16:40:46 |
version 1.6, 2007/09/02 16:24:34 |
| Line 23 function ezin_admin_bindings_main($perm_ |
|
| Line 23 function ezin_admin_bindings_main($perm_ |
|
| $op_list = array( |
$op_list = array( |
| 'article_bind_theme' => strstr($perm_articles, 'a'), |
'article_bind_theme' => strstr($perm_articles, 'a'), |
| 'article_bind_lang' => strstr($perm_articles, 'a'), |
'article_bind_lang' => strstr($perm_articles, 'a'), |
| |
'page_bind_lang' => strstr($perm_articles, 'a'), |
| 'section_bind_lang' => strstr($perm_sections, 's')); |
'section_bind_lang' => strstr($perm_sections, 's')); |
| |
|
| $op_change = array( |
$op_change = array( |
| 'article_bind_theme' => strstr($perm_articles, 'A'), |
'article_bind_theme' => strstr($perm_articles, 'A'), |
| 'article_bind_lang' => strstr($perm_articles, 'A'), |
'article_bind_lang' => strstr($perm_articles, 'A'), |
| |
'page_bind_lang' => strstr($perm_articles, 'A'), |
| 'section_bind_lang' => strstr($perm_sections, 'S')); |
'section_bind_lang' => strstr($perm_sections, 'S')); |
| |
|
| echo '<form class="pme-form" method="post">',"\n"; |
echo '<form class="pme-form" method="post">',"\n"; |
| Line 36 function ezin_admin_bindings_main($perm_ |
|
| Line 38 function ezin_admin_bindings_main($perm_ |
|
| $type = 'article_bind_theme'; |
$type = 'article_bind_theme'; |
| } elseif (isset($_POST['article_bind_lang'])) { |
} elseif (isset($_POST['article_bind_lang'])) { |
| $type = 'article_bind_lang'; |
$type = 'article_bind_lang'; |
| |
} elseif (isset($_POST['page_bind_lang'])) { |
| |
$type = 'page_bind_lang'; |
| } elseif (isset($_POST['section_bind_lang'])) { |
} elseif (isset($_POST['section_bind_lang'])) { |
| $type = 'section_bind_lang'; |
$type = 'section_bind_lang'; |
| } else { |
} else { |
| Line 80 function ezin_admin_bindings_main($perm_ |
|
| Line 84 function ezin_admin_bindings_main($perm_ |
|
| .$ezin_sys['db']['tables']['articles'].' AS a, ' |
.$ezin_sys['db']['tables']['articles'].' AS a, ' |
| .$ezin_sys['db']['tables']['sections'].' AS s' |
.$ezin_sys['db']['tables']['sections'].' AS s' |
| .' WHERE a.section_id = s.id' |
.' WHERE a.section_id = s.id' |
| |
.' AND UNIX_TIMESTAMP(datetime) != 0' |
| |
.' ORDER BY IFNULL(bind,0) ASC, a.datetime DESC, a.id ASC'; |
| |
break; |
| |
case 'page_bind_lang': |
| |
$query = 'SELECT a.title AS name, a.atitle AS name2, a.access_key AS name3,' |
| |
.' a.id, s.lang, a.bind_lang AS bind FROM ' |
| |
.$ezin_sys['db']['tables']['articles'].' AS a, ' |
| |
.$ezin_sys['db']['tables']['sections'].' AS s' |
| |
.' WHERE a.section_id = s.id' |
| |
.' AND (datetime IS NULL OR UNIX_TIMESTAMP(datetime) = 0)' |
| .' ORDER BY IFNULL(bind,0) ASC, a.datetime DESC, a.id ASC'; |
.' ORDER BY IFNULL(bind,0) ASC, a.datetime DESC, a.id ASC'; |
| break; |
break; |
| case 'section_bind_lang': |
case 'section_bind_lang': |
| Line 177 function ezin_admin_bindings_buttons($f_ |
|
| Line 191 function ezin_admin_bindings_buttons($f_ |
|
| $d = $f_multilng ? '' : ' disabled'; |
$d = $f_multilng ? '' : ' disabled'; |
| $op_list['section_bind_lang'] && print('<input'.$d.' class="pme-sections" type="submit" name="section_bind_lang" value="Sections"> '); |
$op_list['section_bind_lang'] && print('<input'.$d.' class="pme-sections" type="submit" name="section_bind_lang" value="Sections"> '); |
| $op_list['article_bind_lang'] && print('<input'.$d.' class="pme-articles" type="submit" name="article_bind_lang" value="Articles"> '); |
$op_list['article_bind_lang'] && print('<input'.$d.' class="pme-articles" type="submit" name="article_bind_lang" value="Articles"> '); |
| |
$op_list['article_bind_lang'] && print('<input'.$d.' class="pme-pages" type="submit" name="page_bind_lang" value="Pages"> '); |
| $op_list['article_bind_lang'] && print('<input'. ' class="pme-themes" type="submit" name="article_bind_theme" value="Themes">'); |
$op_list['article_bind_lang'] && print('<input'. ' class="pme-themes" type="submit" name="article_bind_theme" value="Themes">'); |
| echo '</td>',"\n",'<td class="pme-buttons2">',"\n"; |
echo '</td>',"\n",'<td class="pme-buttons2">',"\n"; |
| // $f_change = 1; // DEBUG |
// $f_change = 1; // DEBUG |