Example #1
0
function xml2array($keys)
{
    $url = "http://www.hadopi-data.fr/export.xml";
    $rss = read_rss_b($url, "temoignage", $keys);
    array_shift($rss);
    //del_first
    foreach ($rss as $k => $v) {
        //good_dates
        foreach ($v as $ka => $va) {
            if (substr($ka, 0, 4) == 'date') {
                $va = clean_date($va);
            }
            $ret[$k][$ka] = $va;
        }
    }
    return $ret;
}
Example #2
0
                        	<td><a href="<?php 
    echo base_url() . 'review/' . $r->review_id . '/' . pretty_url($r->title);
    ?>
" target="_blank"><img src="<?php 
    echo content_thumb($r->thumb);
    ?>
" height="60" /></a></td>
                        	<td><a href="<?php 
    echo base_url() . 'review/' . $r->review_id . '/' . pretty_url($r->title);
    ?>
" target="_blank"><?php 
    echo $r->title;
    ?>
</a></td>
                            <td><?php 
    echo $r->post_deleted == 1 ? 'Deleted by <strong>' . ($r->deleted_by == '-1' ? 'admin' : $r->deleter) . '</strong>' . (!empty($r->deleted_at) ? ' at<br>' . clean_date($r->deleted_at, 'd-m-Y H:i:s') : '') : '';
    ?>
</td>
                        	<td><a href="<?php 
    echo $admin_link . 'review/update/' . $r->review_id;
    ?>
">edit</a> <a class="delete" href="<?php 
    echo $admin_link . 'review/delete/' . $r->review_id;
    ?>
">del</a></td>
                        </tr>
                    <?php 
}
?>
                    </tbody>
                </table>
Example #3
0
									<td><?php 
                echo $file['FileType'];
                ?>
</td>
									<td>
										<a href="<?php 
                echo $this->container->getParameter('fileUrl') . $file['FilePath'] . '" download';
                ?>
">
											<?php 
                echo $tmpFilename[$tempFilenamePieces - 1];
                ?>
										</a>
									</td>
									<td><?php 
                echo clean_date($file['FileModifiedDate']);
                ?>
</td>
									<td><?php 
                echo $file['FileModifiedBy'];
                ?>
</td>
									<td>
										<div style="clear: both;">
											<?php 
                echo "<div style='float: left;'>" . substr($project['Campaign_Start_Date'], 0, 4) . "</div>";
                echo "<div class=\"delete_file\" data-fileId=\"" . $file['FileId'] . "\"><a href=\"#\"><i class=\"fa fa-trash-o\"></i></a></div>";
                ?>
										</div>
									</td>
								</tr>
Example #4
0
        echo base_url() . 'uploads/contest/' . $r->image;
        ?>
" /></a></p>
                                <p><a href="<?php 
        echo $contest_link;
        ?>
"><?php 
        echo $r->title;
        ?>
</a></p>
                                <p>entry dates : <?php 
        echo clean_date($r->submission_start_date) . ' - ' . clean_date($r->submission_end_date);
        ?>
</p>
                                <p>vote dates : <?php 
        echo clean_date($r->voting_start_date) . ' - ' . clean_date($r->voting_end_date);
        ?>
</p>
                                <p><a href="<?php 
        echo $contest_link;
        ?>
">view details</a></p>
                                <?php 
        if (date('Y-m-d') > $r->submission_start_date && date('Y-m-d') < $r->submission_end_date) {
            ?>
                                <p class="tx_red">in progress</p>
                                <?php 
        }
        ?>
                                <?php 
        if (date('Y-m-d') > $r->submission_end_date) {
Example #5
0
                        <th>Email</th>
                        <th>Status</th>
                        <th>Options</th>
                    </thead>
                    
                    <tbody>
                    <?php 
foreach ($requests as $i => $r) {
    ?>
                        <tr>
                            <td><?php 
    echo $i + 1;
    ?>
</td>
                            <td><?php 
    echo clean_date($r->request_date);
    ?>
</td>
                            <td><?php 
    echo $r->requester_name;
    ?>
</td>
                            <td><a href="mailto:<?php 
    echo $r->requester_email;
    ?>
"><?php 
    echo $r->requester_email;
    ?>
</a></td>
                            <td><strong><?php 
    echo $r->request_read == 0 ? 'Unread' : 'Read';
Example #6
0
    echo $r->title;
    ?>
" /></td>
                        	<td><p><?php 
    echo substr(strip_tags($r->content), 0, 150);
    ?>
...</p></td>
                            <td><a href="<?php 
    echo base_url() . 'backadmin/contest/entries/' . $r->contest_id;
    ?>
"><?php 
    echo $r->total_submissions;
    ?>
</a></td>
                            <td><?php 
    echo $r->deleted == 1 ? 'Deleted' . (!empty($r->deleted_at) ? ' at<br>' . clean_date($r->deleted_at, 'd-m-Y H:i:s') : '') : '';
    ?>
</td>
                        	<td><a href="<?php 
    echo base_url() . 'backadmin/contest/update/' . $r->contest_id;
    ?>
">edit</a> <a class="delete" href="<?php 
    echo base_url() . 'backadmin/contest/delete/' . $r->contest_id;
    ?>
">del</a></td>
                        </tr>
                    <?php 
}
?>
                    </tbody>
                </table>
$this->load->view('includes/backadmin/header.php');
?>


	<div id="content">
		
        <div id="main_section">
        
            <div id="section_left">
                <h1><?php 
echo $request_info->requester_name;
?>
</h1>

                <p>Date : <?php 
echo clean_date($request_info->request_date);
?>
</p>

                <p>Name : <?php 
echo $request_info->requester_name;
?>
</p>
                <p>Email : <?php 
echo $request_info->requester_email;
?>
</p>
                <p>Inquiry : </p>
                <p class="hilite"><?php 
echo nl2br($request_info->inquiry);
?>
Example #8
0
                                <p><a class="btn" href="<?php 
        echo $submit_link;
        ?>
">Submit Your Entry</a></p>
                                <?php 
    }
    ?>
								<?php 
}
?>

                                <?php 
if (date("Y-m-d") < $contest_info->voting_start_date) {
    ?>
                                <p>Voting will be open on <br><strong><?php 
    echo clean_date($contest_info->voting_start_date);
    ?>
</strong></p>
                                <?php 
} elseif (date("Y-m-d") > $contest_info->voting_end_date) {
    ?>
                                <p>Voting closed! Thanks for your votes!</p>
                                <?php 
} else {
    ?>
                                <a class="btn" href="<?php 
    echo $vote_link;
    ?>
">Vote and Win</a>  		                    
                                <?php 
}
Example #9
0
</td>
                        	<td><?php 
    echo $r->total_posts;
    ?>
</td>
                            <td><?php 
    echo clean_date($r->member_since, 'm-d-Y H:i:s');
    ?>
</td>
                            <td><?php 
    echo $r->status == 0 ? 'inactive' : '';
    ?>
</td>
                            <td>
                            <?php 
    echo $r->deleted == 1 ? clean_date($r->deleted_at, 'd-m-Y H:i:s') : '';
    ?>
                            </td>
                        	<td>
                            <a href="<?php 
    echo $admin_link . 'user/update/' . $r->account_id;
    ?>
">edit</a> 
                            <?php 
    if ($r->deleted == NULL) {
        ?>
                            <a class="delete" href="<?php 
        echo $admin_link . 'user/delete/' . $r->account_id;
        ?>
">del</a>
                            <?php 
Example #10
0
    if ($month == $i) {
        echo "<option value='{$i}' selected=\"selected\">" . $months[$month] . "</option>";
    } else {
        echo "<option value=\"{$month}\">" . $months[$month] . "</option>";
    }
}
?>
                         </select>
                         -
                        <select class="dobselect" name="byear" id="byear">
                            <option value="">--Year--</option>
                        <?php 
$year = date("Y");
while ($year >= 1930) {
    echo '<option value="' . $year . '"';
    if ($year == clean_date($bio->dob, 'Y')) {
        echo ' selected="selected"';
    }
    echo '>' . $year . '</option>';
    $year--;
}
?>
                        </select>
                        </p>
                
                        <label for="address">Address</label>
                        <p><textarea id="address" name="address"><?php 
echo nl2br($bio->address);
?>
</textarea></p>