예제 #1
0
                    <h2>Entreprises</h2>
                    <ul>
                        <?php 
$pa = Yii::app()->mongodb->groups->find(array("type" => PHType::TYPE_ENTREPRISE));
foreach ($pa as $e) {
    ?>
                            <li class="group"><a href="<?php 
    echo Yii::app()->createUrl('index.php/entreprise/view/id/' . $e["_id"]);
    ?>
"><?php 
    echo $e["name"];
    ?>
</a>
                            <?php 
    echo Citoyen::isAdminUser() ? '<a href="#' . $e["_id"] . '" class="updateBtn pull-right"><span class="icon-pencil"></span></a>' : "";
    echo Citoyen::isAdminUser() ? '<a href="#' . $e["_id"] . '" class="delBtn pull-right"><span class="icon-cancel"></span></a>' : "";
    ?>
                            </li>
                            <?php 
}
?>
                    </ul>
                </div>
                
                <div class='col-md-6'>
                    <h2>Applications</h2>
                    <ul>
                        <?php 
$me = Yii::app()->mongodb->citoyens->findOne(array("_id" => new MongoId(Yii::app()->session["userId"])));
if (isset($me["applications"])) {
    foreach ($me["applications"] as $k => $v) {
예제 #2
0
파일: faq.php 프로젝트: Koulio/pixelhumain
	      
	      var currIndex = $(this).index('.acc-btn'),
	          targetHeight = $('.acc-content-inner').eq(currIndex).outerHeight();
	   
	      $('.acc-btn h1').removeClass('selected');
	      $(this).find('h1').addClass('selected');
	      
	      $('.acc-content').stop().animate({ height: 0 }, animTime);
	      $('.acc-content').eq(currIndex).stop().animate({ height: targetHeight }, animTime);

	      setTimeout(function(){ clickPolice = false; }, animTime);
	    }
	    
	  });
	  <?php 
if (Citoyen::isAdminUser()) {
    ?>
	  $(document).on('touchstart click', '.delBtn', function(event){
		  event.preventDefault();
		  toggleSpinner();
		  $( "."+this.hash.substr(1) ).remove();
		  $.ajax({
	    	  type: "POST",
	    	  url: baseUrl+"/index.php/data/delete",
	    	  data: {"id":this.hash.substr(1)},
	    	  success: function(data){
	    			  $("#flashInfo .modal-body").html(data.msg);
	    			  toggleSpinner();
	    		  	  $("#flashInfo").modal('show');
	    	  },
	    	  dataType: "json"