示例#1
0
                    <p class="location">
                      <i class="glyphicon glyphicon-book" style="color:blue;"></i>
                      Lost Books (<span style="color:orange;font-weight:bold;"><?php 
    echo home_model::countbook($g);
    ?>
</span>)
                
                  


                    </p>
                    <p class="years-in">
                      <i class="glyphicon glyphicon-book" style="color:blue;"></i>
                      Available Books (<span style="color:orange;font-weight:bold;"><?php 
    echo home_model::countbook($g);
    ?>
</span>)
                  
                  
                </p>



          </div>

        
      
      </div>

    </a>
示例#2
0
 * Template Name: Home Page
 *
 * @package Inkness
 */
?>

<?php
include_once("HomeMVC/home_model.php");
include_once("HomeMVC/home_view.php");
include_once("EditPage/edit_model.php");

$editmodel = new edit_model();
$data = $editmodel->get_user_bolos();


$model = new home_model();
$view = new home_view();

$agencies = $model->get_agencies();

//get the bolos for the desired agency (default value = 'Show ALL')
if($_POST['agency'] == 'Show My BOLOs' )
{
    $result = $model->get_user_bolos($_POST['offset']+0);
}
else {
	$result = $model->get_data($_POST['agency'], $_POST['offset']+0);
}

//update the view with the new data
$view->update_view($result, $data, $agencies, $_POST['agency'], $_POST['offset']+0);
示例#3
0
文件: home.php 项目: googlecastle/mvc
        <?php 
    }
    ?>
        <p ><center><?php 
    echo $value['d_name'];
    ?>
</center></p> 
   
      <?php 
    $g = $value['d_id'];
    ?>
        

      
      <center><p style="margin-top:-10px;"><span style="color:orange;"><b>Category(<?php 
    echo home_model::countcategory($g);
    ?>
)</b></span></p></center> 
   <center>
  <p ><a href="<?php 
    echo URL;
    ?>
addcategory/view/<?php 
    echo $val;
    ?>
" style="background-color:blue;color:white;" class=" img-circle btn  yes" role="button">Add Category</a> </p> 
   
    </center>
     <!-- <p class="" style="width:50px;height:50px;background-color:red;">Add Category</p> -->