Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for Metafox/admin/inc-db/bindings.inc.php between version 1.4 and 1.5

version 1.4, 2007/05/05 15:53:20 version 1.5, 2007/08/21 16:40:46
Line 72  function ezin_admin_bindings_main($perm_
Line 72  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'
                                 .' ORDER BY bind DESC, a.datetime DESC, a.id ASC';                                  .' ORDER BY IFNULL(bind,0) ASC, a.datetime DESC, a.id ASC';
                         break;                          break;
                 case 'article_bind_lang':                  case 'article_bind_lang':
                         $query = 'SELECT a.title AS name, a.atitle AS name2, a.access_key AS name3,'                          $query = 'SELECT a.title AS name, a.atitle AS name2, a.access_key AS name3,'
Line 80  function ezin_admin_bindings_main($perm_
Line 80  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'
                                 .' ORDER BY bind DESC, 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':
                         $query = 'SELECT name, access_key AS name2, link AS name3,'                          $query = 'SELECT name, ord, access_key AS name2, link AS name3,'
                                 .' id, lang, bind_lang AS bind'                                  .' id, lang, bind_lang AS bind'
                                 .' FROM '.$ezin_sys['db']['tables']['sections']                                  .' FROM '.$ezin_sys['db']['tables']['sections']
                                 .' ORDER BY bind DESC, ord ASC, id ASC';                                  .' ORDER BY IFNULL(bind,0) ASC, ord ASC, id ASC';
                         break;                          break;
                 default:                  default:
                         return false;                          return false;
Line 113  function ezin_admin_bindings_main($perm_
Line 113  function ezin_admin_bindings_main($perm_
                 $name = $row['name'];                  $name = $row['name'];
                 empty($name) && $name = $row['name2'];                  empty($name) && $name = $row['name2'];
                 empty($name) && $name = $row['name3'];                  empty($name) && $name = $row['name3'];
                   $ord  = intval($row['ord']);
                 $bind = intval($row['bind']);                  $bind = intval($row['bind']);
                 $lang = empty($row['lang']) ? '--' : $row['lang'];                  $lang = empty($row['lang']) ? '--' : $row['lang'];
                 if ($bind_previous != $bind) {                  if ($bind_previous != $bind) {
Line 138  function ezin_admin_bindings_main($perm_
Line 139  function ezin_admin_bindings_main($perm_
                 }                  }
                 echo '<tr class="pme-row-',$i,'">';                  echo '<tr class="pme-row-',$i,'">';
                 if ($op_change[$type]) {                  if ($op_change[$type]) {
                         echo '<td class="pme-navigation-',$i,'">',"\n";                          echo '<td width="10" class="pme-navigation-',$i,'">',"\n";
                         echo '<input type="checkbox" name="record[]" value="',$row['id'],'">';                          echo '<input type="checkbox" name="record[]" value="',$row['id'],'">';
                         echo '</td>',"\n";                          echo '</td>',"\n";
                 }                  }
                 if ($lang_printing) {                  if ($lang_printing) {
                         echo '<td class="pme-cell-',$i,'" width="1%" nowrap>&nbsp;';                          echo '<td width="10" class="pme-cell-',$i,'" width="1%" nowrap>&nbsp;';
                         echo htmlspecialchars($lang),'&nbsp;</td>',"\n";                          echo htmlspecialchars($lang),'&nbsp;</td>',"\n";
                 }                  }
                 echo '<td class="pme-cell-',$i,'" width="1%" nowrap>&nbsp;',$row['id'],'&nbsp;</td>',"\n";                  echo '<td width="10" class="pme-cell-',$i,'" width="1%" nowrap>&nbsp;',$row['id'],'&nbsp;</td>',"\n";
                 echo '<td class="pme-cell-',$i,'">',htmlspecialchars($name),'</td>',"\n";                  echo '<td class="pme-cell-',$i,'">',htmlspecialchars($name),'</td>',"\n";
                 echo '</tr>',"\n";                  echo '</tr>',"\n";
                 $i++;                  $i++;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top