solarized-emacs

a fork of Bozhidar Batsov's solarized-emacs
git clone https://git.trogloxene.org/solarized-emacs.git
Log | Files | Refs | README

php.php (1003B)


      1 <?php
      2 require_once($GLOBALS['g_campsiteDir']. "/$ADMIN_DIR/country/common.php");
      3 require_once($GLOBALS['g_campsiteDir']. "/classes/SimplePager.php");
      4 camp_load_translation_strings("api");
      5 
      6 $f_country_language_selected = camp_session_get('f_language_selected', '');
      7 $f_country_offset = camp_session_get('f_country_offset', 0);
      8 if (empty($f_country_language_selected)) {
      9 	$f_country_language_selected = null;
     10 }
     11 $ItemsPerPage = 20;
     12 $languages = Language::GetLanguages(null, null, null, array(), array(), true);
     13 $numCountries = Country::GetNumCountries($f_country_language_selected);
     14 
     15 $pager = new SimplePager($numCountries, $ItemsPerPage, "index.php?");
     16 
     17 $crumbs = array();
     18 $crumbs[] = array(getGS("Configure"), "");
     19 $crumbs[] = array(getGS("Countries"), "");
     20 echo camp_html_breadcrumbs($crumbs);
     21 
     22 ?>
     23 
     24 <?php  if ($g_user->hasPermission("ManageCountries")) { ?>
     25 <table BORDER="0" CELLSPACING="0" CELLPADDING="1">
     26     <tr>
     27         <td><a href="add.php"><?php putGS("Add new"); ?></a></td>
     28     </tr>
     29 </table>