Esempio n. 1
0
    ?>
<!-- lista -->
<div class="widget board">
    <table>
        <thead>
            <tr>
                <th></th>
                <th>Texto</th>
                <th>Agrupación</th>
                <th></th>
            </tr>
        </thead>

        <tbody>
        <?php 
    while ($item = $pagedResults->fetchPagedRow()) {
        ?>
            <tr>
                <td width="5%"><a title="Registro <?php 
        echo $item->id;
        ?>
" href='/translate/texts/edit/<?php 
        echo $item->id . $filter . '&page=' . $_GET['page'];
        ?>
'>[Edit]</a></td>
                <td width="70%"><?php 
        if ($item->pendiente == 1) {
            echo '* ';
        }
        echo $item->text;
        ?>
Esempio n. 2
0
$level = (int) $this['level'] ?: 3;

?>
<div class="project-updates"> 
    <!-- una entrada -->
    <?php if ($action == 'post') : ?>
    <div class="post widget">
        <?php echo new View('view/blog/post.html.php', array('post' => $post->id, 'show' => 'post', 'url' => '/project/'.$project->id.'/updates/')); ?>
    </div>
    <?php echo new View('view/blog/comments.html.php', array('post' => $post->id, 'owner' => $project->owner)); ?>
    <?php echo new View('view/blog/sendComment.html.php', array('post' => $post->id, 'project' => $project->id)); ?>
    <?php endif ?>
    <!-- Lista de entradas -->
    <?php if ($action == 'list') : ?>
        <?php if (!empty($posts)) : ?>
            <?php while ($post = $pagedResults->fetchPagedRow()) :
                
                    $share_title = $post->title;
                    $share_url = SITE_URL . '/project/'.$project->id.'/updates/' . $post->id;
                    $facebook_url = 'http://facebook.com/sharer.php?u=' . rawurlencode($share_url) . '&t=' . rawurlencode($share_title);
                    $twitter_url = 'http://twitter.com/home?status=' . rawurlencode($share_title . ': ' . $share_url . ' #Goteo');
                ?>
                <div class="widget post">
                    <?php echo new View('view/blog/post.html.php', array('post' => $post->id, 'show' => 'list', 'url' => '/project/'.$project->id.'/updates/')); ?>
					<ul class="share-goteo">
						<?/*<li class="sharetext"><?php echo Text::get('regular-share_this'); ?></li>*/?>
						<li class="twitter"><a href="<?php echo htmlspecialchars($twitter_url) ?>" target="_blank"><?php echo Text::get('regular-twitter'); ?></a></li>
						<li class="facebook"><a href="<?php echo htmlspecialchars($facebook_url) ?>" target="_blank"><?php echo Text::get('regular-facebook'); ?></a></li>
					</ul>
					<div class="comments-num"><a href="/project/<?php echo $project->id; ?>/updates/<?php echo $post->id; ?>"><?php echo $post->num_comments > 0 ? $post->num_comments . ' ' .Text::get('blog-comments') : Text::get('blog-no_comments'); ?></a></div>
                </div>
Esempio n. 3
0
<?php 
} elseif (!empty($this['sended'])) {
    ?>
        <table>
            <thead>
                <tr>
                    <th width="5%"><!-- Si no ves --></th>
                    <th width="45%">Destinatario</th>
                    <th width="35%">Plantilla</th>
                    <th width="15%">Fecha</th>
                    <th><!-- reenviar --></th>
                </tr>
            </thead>
            <tbody>
                <?php 
    while ($send = $pagedResults->fetchPagedRow()) {
        $link = SITE_URL . '/mail/' . base64_encode(md5(uniqid()) . '¬' . $send->email . '¬' . $send->id) . '/?email=' . urlencode($send->email);
        ?>
                    <tr>
                        <td><a href="<?php 
        echo $link;
        ?>
" target="_blank">[Enlace]</a></td>
                        <td><a href="/admin/users/?name=<?php 
        echo urlencode($send->email);
        ?>
"><?php 
        echo $send->email;
        ?>
</a></td>
                        <td><?php 
Esempio n. 4
0
$pagedResults = new \Paginated($investors, 20, isset($_GET['page']) ? $_GET['page'] : 1);


?>
<div class="widget project-supporters">
    
    <h<?php echo $level ?> class="title"><?php echo Text::get('project-menu-supporters'); ?></h<?php echo $level ?>>
    
    <dl class="summary">
        <dt class="supporters"><?php echo Text::get('project-menu-supporters'); ?></dt>
        <dd class="supporters"><?php echo $supporters ?>人</dd>
        
        <dt class="reached"><?php echo Text::get('project-invest-total'); ?></dt>
        <dd class="reached"><?php echo $reached ?> <span>円</span></dd>
        
    </dl>   
        
    <div class="supporters">
        <ul>
        <?php while ($investor = $pagedResults->fetchPagedRow()) : ?>
            <li><?php echo new View('view/user/widget/supporter.html.php', array('user' => $investor, 'worthcracy' => $worthcracy)) ?></li>
        <?php endwhile ?>
        </ul>
    </div>        

    <ul id="pagination">
        <?php   $pagedResults->setLayout(new DoubleBarLayout());
                echo $pagedResults->fetchPagedNavigation(); ?>
    </ul>

</div>
Esempio n. 5
0
} elseif (empty($this['projects'])) {
    ?>
    <p>No se han encontrado registros</p>
<?php 
} else {
    ?>
    <p><strong>OJO!</strong> Resultado limitado a 999 registros como máximo.</p>
<?php 
}
?>
</div>

    
<?php 
if (!empty($this['projects'])) {
    while ($project = $pagedResults->fetchPagedRow()) {
        ?>
<div class="widget board">
    <table>
        <thead>
            <tr>
                <th style="width: 250px;">Proyecto</th> <!-- edit -->
                <th style="min-width: 150px;">Creador</th> <!-- mailto -->
                <th style="min-width: 75px;">Recibido</th> <!-- enviado a revision -->
                <th style="min-width: 80px;">Estado</th>
                <th style="min-width: 50px;">Nodo</th>
                <th style="min-width: 50px;">M&iacute;nimo</th>
                <th style="min-width: 50px;">&Oacute;ptimo</th>
            </tr>
        </thead>
Esempio n. 6
0
    ?>
    <table>
        <thead>
            <tr>
                <th>Alias</th> <!-- view profile -->
                <th>User</th>
                <th>Email</th>
                <th>Proyectos</th>
                <th>Cantidad</th>
                <th>Alta</th>
            </tr>
        </thead>

        <tbody>
            <?php 
    while ($user = $pagedResults->fetchPagedRow()) {
        $adminNode = $user->admin ? $user->admin_node : null;
        ?>
            <tr>
                <td><a href="/user/profile/<?php 
        echo $user->id;
        ?>
" target="_blank" <?php 
        echo $adminNode != 'goteo' ? 'style="color: green;" title="Admin nodo ' . $adminNode . '"' : 'title="Ver perfil público"';
        ?>
><?php 
        echo substr($user->name, 0, 20);
        ?>
</a></td>
                <td><strong><?php 
        echo substr($user->id, 0, 20);
Esempio n. 7
0
        <hr />
    </div>
</div>
<?php 
$i = 1;
?>
<div class="row">
    <div class="twelve columns">
        <?php 
echo $pagedResults->fetchPagedNavigation();
?>
    </div>
</div>
<div class="row">
<?php 
while ($personagem = $pagedResults->fetchPagedRow()) {
    ?>
    <?php 
    include 'personagem-tmpl.php';
    ?>
    <?php 
    if ($i == 4) {
        ?>
    </div><div class="row">
    <?php 
        $i = 0;
        ?>
    <?php 
    }
    ?>
    <?php 
Esempio n. 8
0
  }
</style>
<!-- End style formatting -->
</head>

<body>

  <?php 
//create an array of names in alphabetic order. A database call could have retrieved these items
//$names = array("Andrew", "Bernard", "Castello", "Dennis", "Ernie", "Frank", "Greg", "Henry", "Isac", "Jax", "Kester", "Leonard", "Matthew", "Nigel", "Oscar");
$handle = fopen('manual', 'r');
$contents = fread($handle, filesize('manual'));
fclose($handle);
$result = explode('-^-^-', $contents);
$page = isset($_GET['page']) ? $_GET['page'] : 1;
//constructor takes three parameters
//1. array to be paged
//2. number of results per page (optional parameter. Default is 10)
//3. the current page (optional parameter. Default  is 1)
$pagedResults = new Paginated($result, 1, $page);
while ($row = $pagedResults->fetchPagedRow()) {
    //when $row is false loop terminates
    echo "{$row}";
}
echo "<br />";
//important to set the strategy to be used before a call to fetchPagedNavigation
$pagedResults->setLayout(new DoubleBarLayout());
echo $pagedResults->fetchPagedNavigation();
?>
</body>
</html>
Esempio n. 9
0
$pagedResults = new \Paginated($news, 7, isset($_GET['page']) ? $_GET['page'] : 1);
include 'view/prologue.html.php';
include 'view/header.html.php';
?>
<div id="sub-header-secondary">
    <div class="clearfix">
        <h2>GOTEO<span class="red">NEWS</span></h2>
        <?php 
echo new View('view/header/share.html.php');
?>
    </div>
</div>
<div id="main" class="threecols">
    <div id="news-content">
        <?php 
while ($content = $pagedResults->fetchPagedRow()) {
    ?>
            <div class="widget news-content-module">
                <a name="news<?php 
    echo $content->id;
    ?>
" />
                <h3><?php 
    echo $content->title;
    ?>
</h3>
                <blockquote><?php 
    echo $content->description;
    ?>
</blockquote>
                <a href="<?php