예제 #1
0
파일: bans.php 프로젝트: noremac13/website
        echo Tpl::out($ban['banningusername']);
        ?>
 with reason: <?php 
        echo Tpl::out($ban['reason']);
        ?>
</td>
          <td><?php 
        echo Tpl::moment(Date::getDateTime($ban['starttimestamp']), Date::STRING_FORMAT);
        ?>
</td>
          <td>
            <?php 
        if (!$ban['endtimestamp']) {
            echo "Permanent";
        } else {
            echo Tpl::moment(Date::getDateTime($ban['endtimestamp']), Date::STRING_FORMAT);
        }
        ?>
          </td>
          <td><a class="btn btn-danger btn-xs" href="/admin/user/<?php 
        echo $ban['targetuserid'];
        ?>
/ban/remove?follow=<?php 
        echo rawurlencode($_SERVER['REQUEST_URI']);
        ?>
">Remove</a>
        </tr>
        <?php 
    }
    ?>
        </tbody>
예제 #2
0
파일: profile.php 프로젝트: Alewex/website
      <div class="content">

        <?php foreach ($model->gifts as $gift): ?>
        <div class="content-dark clearfix">
          <div class="ds-block">
            <div>

              <?php if($gift['recurring'] == 1): ?>
              <a class="btn btn-danger pull-right cancel-gift" href="/subscription/<?= $gift['subscriptionId'] ?>/cancel">Cancel</a>
              <?php endif; ?>

              <h3><?= Tpl::out( $gift['type']['tierLabel'] ) ?> <small>Gifted to <span class="label label-primary"><?= $gift['username'] ?></span></small></h3>
              <p>
                <span class="sub-amount">$<?=$gift['type']['amount']?></span> 
                <span>(<?=$gift['type']['billingFrequency']?> <?=strtolower($gift['type']['billingPeriod'])?><?php if($gift['recurring'] == 1): ?> recurring<?php endif; ?>)</span>
                <small>started on <?=Tpl::moment(Date::getDateTime($gift['createdDate']), Date::FORMAT)?></small>
              </p>
              
            </div>
          </div>
        </div>
        <?php endforeach; ?>

      </div>
    </section>
    <?php endif; ?>
    
    <section class="container collapsible">
      <h3><span class="fa fa-fw fa-chevron-right expander"></span> Account</h3>
      
      <div class="content content-dark clearfix">
예제 #3
0
        echo $article['title'];
        ?>
</a>
						</div>
						<div>
							<?php 
        foreach ($article['categories'] as $categories) {
            ?>
							<span><small>Posted in</small> <?php 
            echo Tpl::out($categories['title']);
            ?>
</span>
							<?php 
        }
        ?>
						</div>
						<?php 
        echo Tpl::moment(Date::getDateTime($article['date']), Date::FORMAT);
        ?>
					</div>
				</div>
				<?php 
    }
    ?>
			</div>
		</div>

	</div>
</section>
<?php 
}
예제 #4
0
파일: chat.php 프로젝트: TonyWoo/website
        foreach ($model->usersByIp as $user) {
            ?>
  				<tr>
  					<td><a href="/admin/user/<?php 
            echo $user['userId'];
            ?>
/edit"><?php 
            echo Tpl::out($user['username']);
            ?>
</a></td>
  					<td><?php 
            echo Tpl::out($user['email']);
            ?>
</td>
  					<td><?php 
            echo Tpl::moment(Date::getDateTime($user['createdDate']), Date::STRING_FORMAT_YEAR);
            ?>
</td>
  				</tr>
  			<?php 
        }
        ?>
  			</tbody>
  		</table>
		<?php 
    } else {
        ?>
  		<div class="ds-block">
  			<p>No users with the IP "<?php 
        echo Tpl::out($model->searchIp);
        ?>
예제 #5
0
    ?>
                </dd>

                <dt>Source:</dt>
                <dd><?php 
    echo Tpl::out($model->subscription['subscriptionSource']);
    ?>
</dd>
                <dt>Created date:</dt>
                <dd><?php 
    echo Tpl::moment(Date::getDateTime($model->subscription['createdDate']), Date::STRING_FORMAT_YEAR);
    ?>
</dd>
                <dt>End date:</dt>
                <dd><?php 
    echo Tpl::moment(Date::getDateTime($model->subscription['endDate']), Date::STRING_FORMAT_YEAR);
    ?>
</dd>
                <dt>Time remaining:</dt>
                <dd><?php 
    echo Date::getRemainingTime(Date::getDateTime($model->subscription['endDate']));
    ?>
</dd>

                <?php 
    if (!empty($model->giftee)) {
        ?>
                <dt>Gifted to:</dt>
                <dd><?php 
        echo Tpl::out($model->giftee['username']);
        ?>
예제 #6
0
function buildSubscribersTier(array $tier = null, $num)
{
    ?>
  <?php 
    if (!empty($tier)) {
        ?>
  <section class="container">
    <h3>T<?php 
        echo $num;
        ?>
 Subscribers</h3>
    <div class="content content-dark clearfix">
      <table class="grid">
        <thead>
          <tr>
            <td style="width: 20px;"></td>
            <td style="width: 200px;">User</td>
            <td style="width: 100px;">Recurring</td>
            <td style="width: 80px;">Created on</td>
            <td>Ends on</td>
          </tr>
        </thead>
        <tbody>
        <?php 
        $i = 1;
        ?>
        <?php 
        foreach ($tier as $sub) {
            ?>
        <tr>
          <td><?php 
            echo $i;
            ?>
</td>
          <td>
            <a href="/admin/user/<?php 
            echo $sub['userId'];
            ?>
/edit"><?php 
            echo Tpl::out($sub['username']);
            ?>
</a>
            <?php 
            if (!empty($sub['gifter'])) {
                ?>
              &nbsp; (<a title="Gifted by" href="/admin/user/<?php 
                echo $sub['gifter'];
                ?>
/edit"><span class="fa fa-gift" title="Gift"></span> <?php 
                echo Tpl::out($sub['gifterUsername']);
                ?>
</a>)
            <?php 
            }
            ?>
          </td>
          <td><?php 
            echo $sub['recurring'] == 1 ? 'Yes' : 'No';
            ?>
</td>
          <td><?php 
            echo Tpl::moment(Date::getDateTime($sub['createdDate']), Date::STRING_FORMAT);
            ?>
</td>
          <td><?php 
            echo Tpl::moment(Date::getDateTime($sub['endDate']), Date::STRING_FORMAT);
            ?>
</td>
        </tr>
        <?php 
            $i++;
        }
        ?>
        </tbody>
      </table>
    </div>
  </section>
  <?php 
    }
    ?>
  <?php 
}
예제 #7
0
        echo $gift['type']['amount'];
        ?>
</span> 
              <span>(<?php 
        echo $gift['type']['billingFrequency'];
        ?>
 <?php 
        echo strtolower($gift['type']['billingPeriod']);
        if ($gift['recurring'] == 1) {
            ?>
 recurring<?php 
        }
        ?>
)</span>
              <small>started on <?php 
        echo Tpl::moment(Date::getDateTime($gift['createdDate']), Date::FORMAT);
        ?>
</small>
            </p>
            
          </div>
        </div>
      </div>
      <?php 
    }
    ?>

    </div>
  </section>
  <?php 
}
예제 #8
0
파일: user.php 프로젝트: TonyWoo/website
        ?>
/delete" class="btn btn-danger btn-xs btn-post">Delete</a></td>
            <td><?php 
        echo $auth['authProvider'];
        ?>
</td>
            <td><?php 
        echo !empty($auth['authDetail']) ? Tpl::out($auth['authDetail']) : Tpl::out($auth['authId']);
        ?>
</td>
            <td><?php 
        echo Tpl::moment(Date::getDateTime($auth['createdDate']), Date::STRING_FORMAT_YEAR);
        ?>
</td>
            <td><?php 
        echo Tpl::moment(Date::getDateTime($auth['modifiedDate']), Date::STRING_FORMAT_YEAR);
        ?>
</td>
          </tr>
        <?php 
    }
    ?>
        </tbody>
      </table>
    </div>
  </section>
  </form>
  <?php 
}
?>
  
예제 #9
0
    foreach ($model->payments as $payment) {
        ?>
          <tr>
            <td><?php 
        echo Tpl::out($payment['paymentId']);
        ?>
</td>
            <td><?php 
        echo Tpl::out($payment['amount']);
        ?>
 <?php 
        echo Tpl::out($payment['currency']);
        ?>
</td>
            <td><?php 
        echo Tpl::moment(Date::getDateTime($payment['paymentDate']), Date::STRING_FORMAT_YEAR);
        ?>
</td>
            <td><?php 
        echo Tpl::out($payment['transactionId']);
        ?>
</td>
            <td><?php 
        echo Tpl::out($payment['transactionType']);
        ?>
</td>
            <td><?php 
        echo Tpl::out($payment['paymentType']);
        ?>
</td>
            <td><?php 
예제 #10
0
파일: user.php 프로젝트: Alewex/website
      <table class="grid">
        <thead>
          <tr>
            <td>Provider</td>
            <td style="width:100%;">Detail</td>
            <td>Created</td>
            <td>Modified</td>
          </tr>
        </thead>
        <tbody>
        <?php foreach($model->authSessions as $auth): ?>
          <tr>
            <td><?= $auth['authProvider'] ?></td>
            <td><?= (!empty($auth['authDetail'])) ? Tpl::out($auth['authDetail']):Tpl::out($auth['authId']) ?></td>
            <td><?=Tpl::moment(Date::getDateTime($auth['createdDate']), Date::STRING_FORMAT_YEAR)?></td>
            <td><?=Tpl::moment(Date::getDateTime($auth['modifiedDate']), Date::STRING_FORMAT_YEAR)?></td>
          </tr>
        <?php endforeach; ?>
        </tbody>
      </table>
    </div>
  </section>
  <?php endif; ?>
  
  <br />
  
  <?php include Tpl::file('seg/commonbottom.php') ?>
  
  <script src="<?=Config::cdnv()?>/web/js/admin.js"></script>
  
</body>
예제 #11
0
?>

    <section class="container">
        <h3>Latest Broadcasts</h3>
        <div class="content content-dark clearfix">
            <?php 
if (!empty($model->broadcasts)) {
    ?>
            <div id="broadcast-context" class="ds-block">
                <ul class="unstyled" style="padding: 0;">
                    <?php 
    foreach ($model->broadcasts as $line) {
        ?>
                        <li style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
                            <small class="subtle"><?php 
        echo Tpl::moment(Date::getDateTime($line['timestamp']), Date::STRING_FORMAT, 'h:mm:ss');
        ?>
</small>
                            <span><?php 
        echo Tpl::out($line['data']);
        ?>
</span>
                        </li>
                    <?php 
    }
    ?>
                </ul>
            </div>
            <?php 
}
?>