registratie_carem /webroot/updates/concrete5.6.0.2/concrete/single_pages/dashboard/reports/logs.php

Language PHP Lines 107
MD5 Hash 2feb8c234f4ad40b7a3bb6cdb7ade1e5 Estimated Cost $944 (why?)
Repository https://bitbucket.org/microwebedu/registratie_carem.git View Raw File
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
<?php  
defined('C5_EXECUTE') or die("Access Denied.");

// HELPERS
$valt = Loader::helper('validation/token');
$th = Loader::helper('text');


// VARIABLES

// Check if entries to show, assign to boolean var.
$areEntries = count($entries) > 0 ? true : false;

?>

	<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Logs'), false, false, false);?>
    
    <?php  if(!$areEntries) { ?>
    
    <div class="ccm-pane-body ccm-pane-body-footer">
    
    	<p><?php echo t('There are no log entries to show at the moment.')?></p>
    
    </div>
    
    <?php echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(false);?>
    
    <?php  } else { ?>
    
    <div class="ccm-pane-options ccm-pane-options-permanent-search">
    	<form method="post" id="ccm-log-search"  action="<?php echo $pageBase?>">
        	<div class="row">
                <div class="span5">
                    <label for="keywords"><?php echo t('Keywords')?></label>
                    <div class="input">
                        <?php echo $form->text('keywords', $keywords, array('style'=>'width:180px;'))?>
                    </div>
                </div>
                <div class="span6">
                    <label for="logType"><?php echo t('Type')?></label>
                    <div class="input">
                        <?php echo $form->select('logType', $logTypes, array('style'=>'width:180px;'))?>
                    <?php echo $form->submit('search',t('Search') )?>
                    </div>
                </div>
            </div>
        </form>
    </div>
        
	<div class="ccm-pane-body <?php  if(!$paginator || !strlen($paginator->getPages())>0) { ?>ccm-pane-body-footer <?php  } ?>">

        <table class="table table-bordered">
        	<thead>
                <tr>
                    <th class="subheaderActive"><?php echo t('Date/Time')?></th>
                    <th class="subheader"><?php echo t('Type')?></th>
                    <th class="subheader"><?php echo t('User')?></th>
                    <th class="subheader"><input style="float: right" class="btn error btn-mini" type="button" onclick="if (confirm('<?php echo t("Are you sure you want to clear this log?")?>')) { location.href='<?php echo $this->url('/dashboard/reports/logs', 'clear', $valt->generate(), $_POST['logType'])?>'}" value="<?php echo t('Clear Log')?>" /></th>
					<?php echo t('Text')?></th>
                </tr>
			</thead>
            <tbody>
				<?php  foreach($entries as $ent) { ?>
                <tr>
                    <td valign="top" style="white-space: nowrap" class="active"><?php echo date(DATE_APP_GENERIC_TS, strtotime($ent->getTimestamp('user')))?><?php  if (date('m-d-y') != date('m-d-y', strtotime($ent->getTimestamp('user')))) { ?>
                        <?php echo t(' at ')?><?php echo date(DATE_APP_GENERIC_MDY, strtotime($ent->getTimestamp('user')))?>
                    <?php  } ?></td>
                    <td valign="top"><strong><?php echo $ent->getType()?></strong></td>
                    <td valign="top"><strong><?php 
                    if($ent->getUserID() == NULL){
                        echo t("Guest");
                    }
                    else{
                        $u = User::getByUserID($ent->getUserID());
                        echo $u->getUserName();
                    }
                    ?></strong></td>
                    <td style="width: 100%"><?php echo $th->makenice($ent->getText())?></td>
                </tr>
                <?php  } ?>
			</tbody>
		</table>
    
    </div>
    <!-- END Body Pane -->
    
	<?php  if($paginator && strlen($paginator->getPages())>0){ ?>
    <div class="ccm-pane-footer">
        
        	<div class="pagination">
              <ul>
                  <li class="prev"><?php echo $paginator->getPrevious()?></li>
                  
                  <?php  // Call to pagination helper's 'getPages' method with new $wrapper var ?>
                  <?php echo $paginator->getPages('li')?>
                  
                  <li class="next"><?php echo $paginator->getNext()?></li>
              </ul>
			</div>


	</div>
        <?php  } // PAGINATOR ?>
    
    <?php echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(false);?>
    
    <?php  } ?>
Back to Top