Exemplo n.º 1
0
//----------------------------------------------------------
/* #####################################################################
   # Run baby, run !                                                   #
   #####################################################################
   if the date of you master css file and the computed one aren't equal, regenerate ! (changes made in the master css) 
   if the date of you auto_css.php file and the computed one aren't equal, regenerate ! (changes made in the values to replace) 
  
   otherwise, it doesn't touch and use the last computed version. 
   (server says: "thanks a lot folk !")
   
*/
$regen = changes($css_files);
// need to regen ?
if ($regen == true) {
    if ($auto_css['merge_css_files'] == true) {
        // MERGE ALL CSS FILES !
        $css = '';
        foreach ($css_files as $css_file) {
            $css .= '/*' . $css_file . '*/' . "\n" . file_get_contents($auto_css['path_to_css_file'] . $css_file) . "\n\n";
        }
        regenere_css('', $css);
    } else {
        // DO NOT MERGE ALL CSS FILES !
        foreach ($css_files as $css_file) {
            regenere_css($css_file, '');
        }
    }
}
// auto echoes links to css if config's ok
echolinks($css_files);
Exemplo n.º 2
0
<title>Crime Categories</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
 <?php 
include 'header.php';
?>
   <h2 id='browse'>Crime Categories</h2>
 <div id="content">

  <?php 
echolinks($init, $num, 'crime_category', $limit);
getdata($init, $limit, 'crime_category', $db);
echolinks($init, $num, 'crime_category', $limit);
?>
</div>
<?php 
include 'footer.php';
?>
</div>
  <script src="js/hilightservice.js" type="text/javascript"></script>
  <script src="js/ajax.js" type="text/javascript"></script>
  <script type="text/javascript">
  unhide = document.getElementsByClassName('unhideme');
   for (var i = 0; i < unhide.length; i++) {
      unhide[i].className='styled-button-6';
     };
  </script>
</body>
Exemplo n.º 3
0
<?php

//initialize key variables
require 'common.php';
require 'paging.php';
echo echolinks($init, $num, $table, $limit);
echo getdata($init, $limit, $table, $db);
echo echolinks($init, $num, $table, $limit);
Exemplo n.º 4
0
  <link href="css/sidestyle.css" rel="stylesheet" type="text/css" />-->
</head>
<body>
<div class='container'>
 <?php 
include 'header.php';
?>
   <h2 id='browse'>FBI News</h2>

 <div id="content">
<?php 
#this code is from paging.php and echos a table of cases
#as well as the buttons to navigate through cases
echolinks($init, $num, 'cases', $limit);
getdata($init, $limit, 'cases', $db);
echolinks($init, $num, 'cases', $limit);
?>
</div>
</div>
<?php 
include 'footer.php';
?>

  <script src="js/hilightservice.js" type="text/javascript"></script>
  <script type="text/javascript" src="js/ajax.js">
  </script>
  <script type="text/javascript">
  unhide = document.getElementsByClassName('unhideme');
   for (var i = 0; i < unhide.length; i++) {
      unhide[i].className='styled-button-6';
     };
Exemplo n.º 5
0
<title>Welcome</title>
  <!--<link href="css/style.css" rel="stylesheet" type="text/css" />
  <link href="css/sidestyle.css" rel="stylesheet" type="text/css" />-->
</head>
<body>
<div class='container'>
 <?php 
include 'header.php';
?>
 <h2 id='browse'>Techniques</h2>
 <div id="content">

<?php 
echolinks($init, $num, 'technique', $limit);
getdata($init, $limit, 'technique', $db);
echolinks($init, $num, 'technique', $limit);
?>
</div>
</div>
<?php 
include 'footer.php';
?>

  <script src="js/hilight.js" type="text/javascript"></script>
  <script src="js/ajax.js" type="text/javascript"></script>
  <script type="text/javascript">
  unhide = document.getElementsByClassName('unhideme');
   for (var i = 0; i < unhide.length; i++) {
      unhide[i].className='styled-button-6';
     };
  </script>
Exemplo n.º 6
0
    $cat = null;
}
if (!isset($_GET['noscript'])) {
    $cat = new cats($db);
    echo "\n  <div class='hidebutton'>\n  <button type='button' onclick='toggleCase(" . '"classifys", "bigwindow")' . "' class='styled-button-srch'>Filter By Category</button>\n  <div class='classifys bigwindow hide'>\n  <button type='button' onclick='toggleCase(" . '"classifys", "bigwindow")' . "' class='styled-button-DV'>Hide</button>";
    $cat->cat();
    $cat = null;
    echo "\n  </div>\n";
}
?>
 	</form>
 	<?php 
if (isset($search_result)) {
    echoDisplay($init, $num, $table, $limit);
    echo $search_result;
    echolinks($init, $num, $table, $limit, $find, $buttonstart = "", $buttonfinish = "");
}
?>
  </div>
  </div>
  <?php 
include 'footer.php';
?>


<script src="js/hilightservice.js" type="text/javascript"></script>
<script  src="js/paging.js" type="text/javascript"></script>
<script type="text/javascript">
  //Calls external js onclick of button
  function update (init, num, limit) {
    page(init, num, limit);