Пример #1
0
if ($mod_rewrite == 1) {
    $guide_path = "";
} else {
    $guide_path = $PublicPath . "guide.php?subject=";
}
// We don't want our placeholder
if (in_array('Placeholder', $guide_types)) {
    unset($guide_types[array_search('Placeholder', $guide_types)]);
}
$layout = "";
//init
// let's grab our collections
$collection_results = listCollections("", "2col");
// loop through our source types
foreach ($guide_types as $key => $value) {
    $guide_list = new GuideList($db, $value, 1);
    $all_guides = $guide_list->toArray();
    // get our full listing of guides as an array
    $total_rows = count($all_guides);
    // total number of guides
    $switch_row = round($total_rows / 2);
    if ($total_rows > 0) {
        $col_1 = "<div class=\"pure-u-1 pure-u-md-1-2\"><ul class=\"guide-listing\">";
        $col_2 = "<div class=\"pure-u-1 pure-u-md-1-2\"><ul class=\"guide-listing\">";
        $row_count = 1;
        foreach ($all_guides as $myrow) {
            $guide_location = $guide_path . $myrow['shortform'];
            $list_bonus = "";
            if ($myrow[6] != "") {
                $list_bonus .= $myrow[6] . "<br /><br />";
            }
Пример #2
0
use SubjectsPlus\Control\Guide\GuideList;
include "../includes/autoloader.php";
include "../includes/config.php";
if (isset($_POST['subject_id'])) {
    session_start();
    $db = new Querier();
    $subject_id = (int) $_POST['subject_id'];
    $guide_base = new GuideBase($subject_id, $_SESSION['email'], $db);
    $guide_base->loadGuide();
    echo $guide_base->saveGuide();
    exit;
} else {
    include "../includes/header.php";
}
$db = new Querier();
$guide_list = new GuideList($db);
$guide_list_output = $guide_list->toArray();
?>
<style>
.metadata-url {
display:none;
}
</style>
<div class="pure-g">
<div class="pure-u-1-3">
<div class="pluslet">
<div class="titlebar">
        <div class="titlebar_text">Copy Guide</div>
        <div class="titlebar_options"></div>
      </div>
      <div class="pluslet_body">