当前位置: 首页>>代码示例>>PHP>>正文


PHP makePluslet函数代码示例

本文整理汇总了PHP中makePluslet函数的典型用法代码示例。如果您正苦于以下问题:PHP makePluslet函数的具体用法?PHP makePluslet怎么用?PHP makePluslet使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了makePluslet函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: makePluslet

    }
    makePluslet(_("Browse FAQs by Collection"), $browse_box, "no_overflow");
} else {
    $browse_subject_box = "<p>" . _("If you wish to edit a FAQ, click the link.") . "</p>";
    $q = "SELECT faq_id, question, answer, keywords, last_revised, last_revised_by\nFROM faq\nORDER BY faq_id DESC";
    $q = "SELECT * FROM faq f, faq_subject fs, subject s WHERE f.faq_id = fs.faq_id AND s.subject_id = fs.subject_id GROUP BY subject";
    $r = $db->query($q);
    $colour1 = "evenrow";
    $colour2 = "oddrow";
    $row_count = 1;
    foreach ($r as $myrow) {
        $sub_id = $myrow["subject_id"];
        $subject = $myrow["subject"];
        $row_colour = $row_count % 2 ? $colour1 : $colour2;
        $browse_subject_box .= "<h3>{$subject}</h3>";
        $q2 = "SELECT * FROM faq_subject fs, faq f WHERE  f.faq_id = fs.faq_id AND fs.subject_id = '{$sub_id}'";
        $r2 = $db->query($q2);
        $browse_subject_box .= "<ul>";
        foreach ($r2 as $myrow2) {
            $browse_subject_box .= "<li><a class=\"showmedium\" href=\"faq.php?faq_id=" . $myrow2["faq_id"] . "&wintype=pop\">" . stripslashes(htmlspecialchars_decode($myrow2["question"])) . "</a></li>";
        }
        $browse_subject_box .= "</ul>";
        $row_count++;
    }
    makePluslet(_("Browse FAQs by Subject Area"), $browse_subject_box, "no_overflow");
}
print "</div>";
// close pure-u-
print "</div>";
// close pure
include "../includes/footer.php";
开发者ID:kenirwin,项目名称:SubjectsPlus,代码行数:31,代码来源:browse_faq.php

示例2: Querier

///////////////
// disciplines
///////////////
$querierDept = new Querier();
$qdiscipline = "select discipline_id, discipline, sort from discipline order by sort, discipline";
$disciplineArray = $querierDept->query($qdiscipline);
foreach ($disciplineArray as $value) {
    $ourlist .= "<li id=\"item-{$value['0']}\" class=\"sortable_item disc-sortable\"><a id=\"delete-{$value['0']}\"><img src=\"{$IconPath}/delete.png\" class=\"pointer\" /></a> &nbsp; <input type=\"text\" size=\"40\" name=\"discipline[]\" value=\"{$value['1']}\" /> <input type=\"hidden\" name=\"discipline_id[]\" value=\"{$value['0']}\" /></li>";
}
$discipline_box = "\n<form id=\"disciplines\" action=\"\" method=\"post\">\n<button class=\"button\" id=\"save_guide\"  class=\"button pure-button pure-button-primary\" style=\"display: block;\" name=\"update_disciplines\" >" . _("SAVE CHANGES") . "</button>\n\n<p>" . _("NOTE:  Disciplines were added to facilitate Serials Solution ingest of data.  This original set was provided by SerSol in Nov 2012. \n    If you are a SerSol customer, you might not want to change these.  Sort may or may not be implemented in your version of SP.") . "</p>\n<p>" . _("Enter discipline type label.") . "</p>\n<br />\n\n<ul id=\"sortable-\" class=\"sortable_list\">\n{$ourlist}\n</ul>\n</form>\n";
$add_discipline_box = "\n<form id=\"new_discipline\" action=\"\" method=\"post\">\n<span class=\"record_label\">" . _("Source Name") . "</span><br />\n<input type=\"text\" name=\"source\" id=\"\" size=\"40\" class=\"\" value=\"\">\n<br /><br />\n<button class=\"button\" id=\"add_discipline\" name=\"add_discipline\">" . _("Add New Discipline") . "</button>\n</form>";
print feedBack($feedback);
print "\n\n<form id=\"disciplines\" action=\"\" method=\"post\">\n\n<div class=\"pure-g\">\n  <div class=\"pure-u-2-3\">\n";
makePluslet(_("Disciplines"), $discipline_box, "no_overflow");
print "</div>\n<div class=\"pure-u-1-3\">";
makePluslet(_("Add Discipline"), $add_discipline_box, "no_overflow");
print "</div>";
// close pure-u-
print "</div>";
// close pure
include "../includes/footer.php";
?>
<script type="text/javascript">
 jQuery(document).ready(function() {

   ////////////////////////////
   // MAKE COLUMNS SORTABLE
   // Make "Save Changes" button appear on sorting
   ////////////////////////////
   // connectWith: '.sort-column',
开发者ID:kenirwin,项目名称:SubjectsPlus,代码行数:30,代码来源:disciplines.php

示例3: makePluslet

    $out .= $our_items->displayTypes();
} else {
    // if it's the type type, show filter tip
    if (isset($clean_type) && $clean_type != "") {
        $out .= "<div class=\"faq_filter\">displaying databases filtered by {$clean_type} >> <a href=\"databases.php?letter=bytype\">view all types</a></div>";
    }
    // otherwise display our results from the database list
    $out .= $our_items->writeTable($_GET["letter"], $clean_id, $description_search);
}
// Assemble the content for our main pluslet/box
$display = $intro . $out;
include "includes/header_um.php";
// Our version 2 vs version 3 styles choice
if (isset($v2styles) && $v2styles == 1) {
    $db_results = "<form class=\"pure-form\">{$alphabet}</form>\n  {$display}";
    $layout = makePluslet("", $db_results, "", "", FALSE);
} else {
    print "version 3 styles not set up yet";
}
// Trial Databases //
// xxxUM trial databases--requires DB_Trials in ctags fieldxxx
// In v4.2 uses the "status" field set to "Trial"
$connection = $db->getConnection();
$statement = $connection->prepare("select distinct title, location, access_restrictions, title.title_id as this_record\n        FROM title, location, location_title\n        WHERE record_status = 'Trial'\n        AND title.title_id = location_title.title_id\n        AND location.location_id = location_title.location_id\n        ORDER BY title");
$statement->execute();
$trial_list = "";
if ($rtrial = $statement->fetchAll()) {
    $trial_list = "<ul>\n";
    foreach ($rtrial as $myrow) {
        // add proxy string if necessary
        if ($myrow[2] != 1) {
开发者ID:johnwinsor,项目名称:SubjectsPlus,代码行数:31,代码来源:databases.php

示例4: outputSelfEditForm

 public function outputSelfEditForm()
 {
     // This is just the information that a user can edit about themselves
     // agd april 2014
     global $require_user_columns;
     global $omit_user_columns;
     global $use_shibboleth;
     $isPersonalOmitted = in_array(_("personal_information"), $omit_user_columns);
     $isEmergencyContactOmitted = in_array(_("emergency_contact"), $omit_user_columns);
     $action = htmlentities($_SERVER['PHP_SELF']) . "?staff_id=" . $this->_staff_id;
     // set up
     print "<div class=\"pure-g\">";
     // start form
     print "<form action=\"" . $action . "\" method=\"post\" id=\"new_record\" accept-charset=\"UTF-8\" class=\"pure-form pure-form-stacked\">\n    <input type=\"hidden\" name=\"staff_id\" value=\"" . $this->_staff_id . "\" />\n    <div class=\"pure-u-1-3\">\n    ";
     // Only display the update personal info if this isn't turned off
     if (!$isPersonalOmitted) {
         self::outputPersonalInfoForm();
     } else {
         echo "<input type=\"hidden\" name=\"street_address\" id=\"street_address\" value=\"" . $this->_street_address . "\" />\n";
         echo "<input type=\"hidden\" name=\"city\" id=\"city\" value=\"" . $this->_city . "\" />\n";
         echo "<input type=\"hidden\" name=\"state\" id=\"state\" value=\"" . $this->_state . "\" />\n";
         echo "<input type=\"hidden\" name=\"zip\" id=\"zip\" value=\"" . $this->_zip . "\" />\n";
         echo "<input type=\"hidden\" name=\"home_phone\" id=\"home_phone\" value=\"" . $this->_home_phone . "\" />\n";
         echo "<input type=\"hidden\" name=\"cell_phone\" id=\"cell_phone\" value=\"" . $this->_cell_phone . "\" />\n";
         echo "<input type=\"hidden\" name=\"lat_long\" id=\"lat_long\"value=\"" . $this->_lat_long . "\" />\n";
     }
     // Only display the emergency info if it isn't turned off
     if (!$isEmergencyContactOmitted) {
         self::outputEmergencyInfoForm();
     } else {
         echo "<input type=\"hidden\" name=\"emergency_contact_name\" id=\"emergency_contact_name\" value=\"" . $this->_emergency_contact_name . "\" />";
         echo "<input type=\"hidden\" name=\"emergency_contact_relation\" id=\"emergency_contact_relation\" value=\"" . $this->_emergency_contact_relation . "\" />\n";
         echo "<input type=\"hidden\" name=\"emergency_contact_phone\" id=\"emergency_contact_phone\" value=\"" . $this->_emergency_contact_phone . "\" />\n";
     }
     print "</div>";
     // close pure-1-3
     print "<div class=\"pure-u-1-3\">";
     print "<div class=\"pluslet\">\n    <div class=\"titlebar\">\n      <div class=\"titlebar_text\">" . _("Biographical Details") . "</div>\n      <div class=\"titlebar_options\"></div>\n    </div>\n    <div class=\"pluslet_body\">\n    <p>" . _("Please only include professional details.") . "</p><br />";
     self::outputBioForm();
     echo "</div></div>";
     // end pluslet_body, end pluslet
     print "<div class=\"pluslet\">\n    <div class=\"titlebar\">\n      <div class=\"titlebar_text\">" . _("Social Media Accounts") . "</div>\n      <div class=\"titlebar_options\"></div>\n    </div>\n    <div class=\"pluslet_body\">";
     echo self::outputSocialMediaForm();
     echo "</div></div>";
     // end pluslet_body, end pluslet
     print "</div>";
     // close pure-1-3
     print "<div class=\"pure-u-1-3\">";
     // only do if someone isn't using Shib
     if (isset($use_shibboleth) && $use_shibboleth === TRUE) {
         // nothing.  I've done it this way in case someone with an older config.php file doesn't have this $use_shibboleth var set
     } else {
         $password_update = "<p><a href=\"../includes/set_password.php?staff_id=" . $this->_staff_id . "\" id=\"reset_password\">" . _("The password is hidden.  Reset?") . "</a></p>";
         makePluslet(_("Change Password?"), $password_update, "no_overflow");
     }
     $saver = "<input type=\"submit\" name=\"submit_record\" class=\"pure-button pure-button-primary\" value=\"" . _("Update Now!") . "\" />";
     makePluslet(_("Save"), $saver, "no_overflow");
     print "</div>";
     // close pure-1-3
     // now let's add all our missing/hidden data
     print "<input type=\"hidden\" name=\"staff_id\" value=\"" . $this->_staff_id . "\" />";
     print "<input type=\"hidden\" name=\"lname\" value=\"" . $this->_lname . "\" />";
     print "<input type=\"hidden\" name=\"fname\" value=\"" . $this->_fname . "\" />";
     print "<input type=\"hidden\" name=\"title\" value=\"" . $this->_title . "\" />";
     print "<input type=\"hidden\" name=\"tel\" value=\"" . $this->_tel . "\" />";
     print "<input type=\"hidden\" name=\"department_id\" value=\"" . $this->_department_id . "\" />";
     //print "<input type=\"hidden\" value=\"{$this->_department_id}\" name=\"department_id[]\" />";
     print "<input type=\"hidden\" name=\"staff_sort\" value=\"" . $this->_staff_sort . "\" />";
     print "<input type=\"hidden\" name=\"email\" value=\"" . $this->_email . "\" />";
     print "<input type=\"hidden\" name=\"user_type_id\" value=\"" . $this->_user_type_id . "\" />";
     print "<input type=\"hidden\" name=\"ptags\" value=\"" . $this->_ptags . "\" />";
     print "<input type=\"hidden\" name=\"active\" value=\"" . $this->_active . "\" />";
     print "<input type=\"hidden\" name=\"position_number\" value=\"" . $this->_position_number . "\" />";
     print "<input type=\"hidden\" name=\"job_classification\" value=\"" . $this->_job_classification . "\" />";
     print "<input type=\"hidden\" name=\"room_number\" value=\"" . $this->_room_number . "\" />";
     print "<input type=\"hidden\" name=\"supervisor_id\" value=\"" . $this->_supervisor_id . "\" />";
     print "<input type=\"hidden\" name=\"fax\" value=\"" . $this->_fax . "\" />";
     print "<input type=\"hidden\" name=\"intercom\" value=\"" . $this->_intercom . "\" />";
     print "<input type=\"hidden\" name=\"lat_long\" value=\"" . $this->_lat_long . "\" />";
     print "<input type=\"hidden\" name=\"fullname\" value=\"" . $this->_fullname . "\" />";
     print "</form>";
     // close form
     print "</div>";
     // close pure
 }
开发者ID:johnwinsor,项目名称:SubjectsPlus,代码行数:85,代码来源:Staff.php

示例5: _

    </fieldset>
    <br />
    <div align="center"><a href="forgotpassword.php">' . _("I have forgotten my password") . '</a></div>
</form>
';
$logo = "<img src=\"{$AssetPath}" . "images/admin/logo_v3_full.png\" border=\"0\" />\n\n<br />";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" href="<?php 
echo getControlURL();
?>
includes/css.php" type="text/css" media="all" />
        <title>Login</title>
    </head>

<body id="controlpage">

    <div style="margin: 4em auto; width: 350px;">
<?php 
makePluslet($logo, $login_form, "");
?>

</div>

</body>
</html>

开发者ID:johnwinsor,项目名称:SubjectsPlus,代码行数:29,代码来源:login.php

示例6: _

    $vid_list = "<p>" . _("No Videos yet.  Grab your camera.") . "</p>";
}
$ingest_body_text = "<a href=\"ingest.php\">" . _("FIND VIDEOS") . "</a>";
$add_metadata_text = "<a href=\"video.php\">" . _("ENTER VIDEO") . "</a>";
$about_videos_text = "<p><i class=\"fa fa-pencil fa-lg\" alt=\"" . _("Edit") . "\"></i> = " . _("Edit") . "</p>\n    <p><i class=\"fa fa-eye fa-lg\" alt=\"" . _("View") . "\"></i> = " . _("View Video on Public Site") . "</p>";
print "<br />\n\n<div class=\"pure-g\">\n  <div class=\"pure-u-2-3\">  \n\n    <div class=\"pluslet no_overflow\" id=\"answered\">\n    <div class=\"titlebar\">" . _("Collected Videos") . "</div>\n    <p class=\"pluslet_body\"><strong>{$row_count1} " . _("Videos visible") . "</strong> ";
if (!isset($_GET["limit"]) || $_GET["limit"] != "all") {
    print "(<a href=\"index.php?limit=all\">" . _("See All") . "</a>)";
}
print "</p><br />\n<div class=\"pluslet_body\">    \n{$vid_list}\n</div>\n</div>";
print "</div>";
// close pure-u-2-3
print "<div class=\"pure-u-1-3\">";
makePluslet(_("Ingest Video Metadata"), $ingest_body_text, "no_overflow");
makePluslet(_("Add Metadata by Hand"), $add_metadata_text, "no_overflow");
makePluslet(_("About Videos"), $about_videos_text, "no_overflow");
print "</div>";
// close pure-u-1-3
print "</div>";
// close pure-g
include "../includes/footer.php";
?>


<script type="text/javascript">
  $(document).ready(function(){
    $(".toggle_unanswered").click(function() {
      $("#unanswered .hideme").toggle();
      return false;
    });
开发者ID:johnwinsor,项目名称:SubjectsPlus,代码行数:30,代码来源:index.php

示例7: outputForm


//.........这里部分代码省略.........
     if ($wintype != "") {
         $action .= "&wintype=pop";
     }
     $tb_title_line = _("Edit TalkBack");
     echo "\n<form action=\"" . $action . "\" method=\"post\" id=\"new_record\" class=\"pure-form pure-form-stacked\" accept-charset=\"UTF-8\">\n<input type=\"hidden\" name=\"talkback_id\" value=\"" . $this->_talkback_id . "\" />\n<div class=\"pure-g\">\n  <div class=\"pure-u-2-3\">\n    <div class=\"pluslet\">\n      <div class=\"titlebar\">\n        <div class=\"titlebar_text\">{$tb_title_line}</div>\n        <div class=\"titlebar_options\"></div>\n      </div>\n      <div class=\"pluslet_body\">\n\n<label for=\"question\">" . _("Question") . "</label>\n<textarea name=\"question\" rows=\"4\" cols=\"50\" class=\"required_field\">" . stripslashes($this->_question) . "</textarea>\n\n<label for=\"a_from\">" . _("Question By") . "</label>\n<input type=\"text\" name=\"q_from\" size=\"20\" class=\"required_field\" value=\"" . $this->_q_from . "\">\n\n<label for=\"answer\">" . _("Answer") . "</label>";
     if ($wysiwyg_desc == 1) {
         include $CKPath;
         global $BaseURL;
         $oCKeditor = new CKEditor($CKBasePath);
         $oCKeditor->timestamp = time();
         $config['toolbar'] = 'SubsPlus_Narrow';
         // Default shows a much larger set of toolbar options
         $config['height'] = '200';
         $config['filebrowserUploadUrl'] = $BaseURL . "ckeditor/php/uploader.php";
         echo $oCKeditor->editor('answer', $this->_answer, $config);
         echo "<br />";
     } else {
         echo "<textarea name=\"answer\" rows=\"3\" cols=\"70\">" . stripslashes($this->_answer) . "</textarea>";
     }
     /////////////////////
     // Answer By
     /////////////////////
     $qStaff = "select staff_id, CONCAT(fname, ' ', lname) as fullname FROM staff WHERE ptags LIKE '%talkback%' ORDER BY lname, fname";
     $querierStaff = new Querier();
     $staffArray = $querierStaff->query($qStaff);
     // put in a default user
     if ($this->_a_from == "") {
         $selected_user = $_SESSION["staff_id"];
     } else {
         $selected_user = $this->_a_from;
     }
     $staffMe = new Dropdown("a_from", $staffArray, $selected_user, "50", "--Select--");
     $staff_string = $staffMe->display();
     $answerer = "<label=\"record_label\"></label>\n            {$staff_string}\n        ";
     /////////////////////
     // Is Live
     ////////////////////
     $is_live = "<label=\"display\"></label>\n<input name=\"display\" type=\"radio\" value=\"1\"";
     if ($this->_display == 1) {
         $is_live .= " checked=\"checked\"";
     }
     $is_live .= " /> " . _("Yes") . " &nbsp;&nbsp;&nbsp; <input name=\"display\" type=\"radio\" value=\"0\"";
     if ($this->_display == 0) {
         $is_live .= " checked=\"checked\"";
     }
     $is_live .= " /> " . _("No") . "\n<br class=\"clear-both\" /><br />";
     /////////////////////
     // tbtags
     ////////////////////
     $tb_tags = "<input type=\"hidden\" name=\"tbtags\" value=\"" . $this->_tbtags . "\" />\n\t\t\t<label=\"record_label\"></label>";
     $current_tbtags = explode("|", $this->_tbtags);
     $tag_count = 0;
     // added because if you have a lot of ctags, it just stretches the div forever
     foreach ($all_tbtags as $key => $value) {
         if ($tag_count == 3) {
             $tb_tags .= "<br />";
             $tag_count = 0;
         }
         if (in_array($key, $current_tbtags)) {
             $tb_tags .= "<span class=\"ctag-on\">{$key}</span>";
         } else {
             $tb_tags .= "<span class=\"ctag-off\">{$key}</span>";
         }
         $tag_count++;
     }
     /////////////////////
     // cattags
     ////////////////////
     $cat_tags = "<input type=\"hidden\" class=\"cattag-data\" name=\"cattags\" value=\"" . $this->_cattags . "\" />\n\t\t\t<label=\"record_label\"></label>";
     $current_cattags = explode("|", $this->_cattags);
     $tag_count = 0;
     // added because if you have a lot of ctags, it just stretches the div forever
     foreach ($all_cattags as $key => $value) {
         if ($tag_count == 3) {
             $cat_tags .= "<br />";
             $tag_count = 0;
         }
         if (in_array($value, $current_cattags)) {
             $cat_tags .= "<span class=\"ctag-on\">{$value}</span>";
         } else {
             $cat_tags .= "<span class=\"ctag-off\">{$value}</span>";
         }
         $tag_count++;
     }
     echo "\n\n</div>\n</div>\n</div>\n<!-- right hand column -->";
     $last_mod = _("Last modified: ") . lastModded("talkback", $this->_talkback_id);
     $title_save_box = "<div id=\"last_edited\">{$last_mod}</div>";
     echo "<div class=\"pure-u-1-3\">\n    <div class=\"pluslet\">\n      <div class=\"titlebar\">\n        <div class=\"titlebar_text\">{$title_save_box}</div>\n        <div class=\"titlebar_options\"></div>\n      </div>\n      <div class=\"pluslet_body\">\n    <input type=\"submit\" name=\"submit_record\" class=\"button pure-button pure-button-primary\" value=\"" . _("Save Now") . "\" />";
     // if a) it's not a new record, and  b) we're an admin or c) we are listed as a librarian for this guide, show delete button
     if ($this->_talkback_id != "") {
         if (isset($_SESSION["admin"]) && $_SESSION["admin"] == "1") {
             echo "<input type=\"submit\" name=\"delete_record\" class=\"button pure-button delete_button  pure-button-warning\" value=\"" . _("Delete Forever!") . "\" />";
         }
     }
     echo "</div></div>";
     makePluslet(_("Answered By"), $answerer, "no_overflow");
     makePluslet(_("Is this comment live?"), $is_live, "no_overflow");
     makePluslet(_("Site Tags (relevant library sites)"), $tb_tags, "no_overflow");
     makePluslet(_("Topic Tags (relevant topics)"), $cat_tags, "no_overflow");
 }
开发者ID:johnwinsor,项目名称:SubjectsPlus,代码行数:101,代码来源:Talkback.php

示例8: _

    $title_line = _("Organize Resources for ") . "{$subject_name}";
    $response = "<div id=\"feedback\" class=\"feedback\"></div>\n    <p id=\"savour\" align=\"center\"><button id=\"save_guide\" class=\"button pure-button pure-button-primary\" style=\"display:none;\">" . _("SAVE CHANGES") . "</button></p>";
}
print $response;
$org_box = "<p>" . _("You may drag items to rearrange their order") . $ourlist;
// Print out //
print "\n<div class=\"pure-g\">\n  <div class=\"pure-u-2-3\">  \n  ";
makePluslet($title_line, $org_box, "no_overflow");
print "</div>";
// close pure-u-
print "<div class=\"pure-u-1-3\">";
if (isset($_GET["wintype"]) && $_GET["wintype"] == "pop") {
    // don't include sidebar in popup
} else {
    $links_box = "\n        <ul>\n        <li><a href=\"guide.php?subject_id={$subject_id}\">" . _("Admin guide") . "</a></li>\n        <li><a href=\"{$PublicPath}" . "guide.php?subject={$shortform}\">" . _("Public guide") . "</a></li>\n        </ul>";
    makePluslet(_("View Guide"), $links_box, "no_overflow");
}
print "</div>";
// close pure-u-
print "</div>";
// close pure
include "../includes/footer.php";
?>


<script type="text/javascript">
    var user_id = "<?php 
print $_SESSION["staff_id"];
?>
";
    var user_name = "<?php 
开发者ID:kenirwin,项目名称:SubjectsPlus,代码行数:31,代码来源:manage_items.php

示例9: outputForm

 public function outputForm($wintype = "")
 {
     global $wysiwyg_desc;
     global $CKPath;
     global $CKBasePath;
     global $IconPath;
     global $PublicPath;
     global $guide_types;
     $action = htmlentities($_SERVER['PHP_SELF']);
     echo "\n<form action=\"" . $action . "\" method=\"post\" id=\"new_transaction\" accept-charset=\"UTF-8\" class=\"pure-form\">\n<h1>Add Transactions</h1>\n<select class=\"form-control\" name=\"location_id\">\n";
     foreach ($this->_locations as $value) {
         echo "<option value=\"{$value['0']}\">{$value['1']}</option>";
     }
     echo "\n</select>\n\n<span><input type=\"text\" name=\"datetime\" value=\"" . date("F j, Y, g:i a") . "\" size=\"30\" /></span>\n\n<br style=\"clear: both;\" />";
     // loop through our modes, to create one box for each
     foreach ($this->_modes as $value) {
         $box_content = "";
         // create the radio buttons
         // loop through the types
         foreach ($this->_types as $value2) {
             $box_content .= "\n        <label for=\"option-{$value['1']}-{$value2['0']}\" class=\"pure-radio\">\n        <input id=\"option-{$value['1']}-{$value2['0']}\" type=\"radio\" name=\"type_id\" value=\"{$value2['0']}\">\n        {$value2['1']}\n    </label>";
         }
         $box_content .= "<textarea class=\"form-control\" rows=\"2\" placeholder=\"notes\" name=\"notes-{$value['0']}\"></textarea>\n  <br />\n  <p><input class=\"pure-button pure-button-primary\" type=\"submit\" value=\"Add {$value['1']}\" name=\"submit_record-{$value['0']}\">\n  &nbsp; x &nbsp;<input name=\"times-{$value['0']}\" type=\"text\" value=\"1\" size=\"1\" /></p>\n  ";
         // create one pluslet per mode
         makePluslet($value[1], $box_content, "inline-block");
     }
     echo "<input type=\"hidden\" name=\"mode_id\" value=\"\"/>";
     echo "</form>";
 }
开发者ID:kenirwin,项目名称:SubjectsPlus,代码行数:29,代码来源:RefStat.php

示例10: makePluslet

    <div class="pure-u-1-3">
        <?php 
echo makePluslet(_("Add New Collection"), $add_collection_box, "no_overflow");
?>
        <?php 
echo makePluslet(_("Guide Collections List"), $guide_collection_list, "no_overflow");
?>
    </div>

    <div class="pure-u-1-3">
        <?php 
echo makePluslet(_("Add Guides"), $guide_search_viewport, "no_overflow");
?>
    </div>

    <div class="pure-u-1-3">
        <?php 
echo makePluslet(_("Collection Details"), $guide_collection_viewport, "no_overflow");
?>
        <?php 
echo makePluslet(_("Associated Guides"), $associated_guides_viewport, "no_overflow");
?>
    </div>

</div>

<script>
    var gcs = guideCollectionService();
    gcs.init();
</script>
开发者ID:johnwinsor,项目名称:SubjectsPlus,代码行数:30,代码来源:guide_collections.php

示例11: getControlURL

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" href="<?php 
echo getControlURL();
?>
includes/css.php" type="text/css" media="all" />
        <style type="text/css" media="all">@import "<?php 
print $AssetPath;
?>
css/admin/admin_styles.css";</style>
        <title><?php 
print _("Forgot Password");
?>
</title>
    </head>


    <body id="controlpage">

    <div style="margin: 4em auto; width: 350px;">
<?php 
makePluslet($logo, $our_form, "");
?>

</div>

    </body>
</html>
开发者ID:kenirwin,项目名称:SubjectsPlus,代码行数:30,代码来源:forgotpassword.php

示例12: outputForm

 public function outputForm($wintype = "")
 {
     global $wysiwyg_desc;
     global $CKPath;
     global $CKBasePath;
     global $IconPath;
     global $AssetPath;
     global $guide_types;
     global $video_storage_types;
     global $all_vtags;
     //print "<pre>";print_r($this->_staffers); print "</pre>";
     $action = htmlentities($_SERVER['PHP_SELF']) . "?video_id=" . $this->_video_id;
     if ($wintype != "") {
         $action .= "&wintype=pop";
     }
     $vid_title_line = _("Edit Video Info");
     echo "\n<form action=\"" . $action . "\" method=\"post\" id=\"new_record\" class=\"pure-form pure-form-stacked\" accept-charset=\"UTF-8\">\n<input type=\"hidden\" name=\"video_id\" value=\"" . $this->_video_id . "\" />\n<div class=\"pure-g\">\n  <div class=\"pure-u-2-3\">\n    <div class=\"pluslet\">\n      <div class=\"titlebar\">\n        <div class=\"titlebar_text\">{$vid_title_line}</div>\n        <div class=\"titlebar_options\"></div>\n      </div>\n      <div class=\"pluslet_body\">\n\n<label for=\"title\">" . _("Title") . "</label>\n<textarea name=\"title\" rows=\"2\" cols=\"50\">" . stripslashes($this->_title) . "</textarea>\n\n<label for=\"description\">" . _("Description") . "</label>";
     if ($wysiwyg_desc == 1) {
         include $CKPath;
         global $BaseURL;
         $oCKeditor = new CKEditor($CKBasePath);
         $oCKeditor->timestamp = time();
         $config['toolbar'] = 'Basic';
         // Default shows a much larger set of toolbar options
         $config['height'] = '100';
         $config['filebrowserUploadUrl'] = $BaseURL . "ckeditor/php/uploader.php";
         echo $oCKeditor->editor('description', $this->_description, $config);
         echo "<br />";
     } else {
         echo "<textarea name=\"description\" rows=\"4\" cols=\"70\">" . stripslashes($this->_description) . "</textarea>";
     }
     // Generate our dropdown
     $guideMe = new Dropdown("source", $video_storage_types, $this->_source, "50");
     $guide_string = $guideMe->display();
     echo "\n    <label for=\"source\">" . _("Video file storage location") . "</label>\n{$guide_string}\n\n<label for=\"foreign_id\">" . _("Foreign ID") . "</label>\n<input name=\"foreign_id\" value=\"" . stripslashes($this->_foreign_id) . "\" size=\"15\" />\n  <span class=\"smaller\">* " . "Enter the embed code id for youtube or vimeo" . "</span><br />\n<label for=\"duration\">" . _("Duration in seconds") . "</label>\n<input name=\"duration\" value=\"" . stripslashes($this->_duration) . "\" size=\"5\" />\n<br />";
     /////////////////////
     // Tags
     ////////////////////
     echo "<input type=\"hidden\" name=\"vtags\" value=\"" . $this->_vtags . "\" />\n\t\t\t<span class=\"record_label\">vtags: </span> ";
     $current_vtags = explode("|", $this->_vtags);
     $tag_count = 0;
     // added because if you have a lot of ctags, it just stretches the div forever
     $vid_tags = "";
     foreach ($all_vtags as $value) {
         if ($tag_count == 5) {
             $vid_tags .= "<br />";
             $tag_count = 0;
         }
         if (in_array($value, $current_vtags)) {
             $vid_tags .= "<span class=\"ctag-on\">{$value}</span>";
         } else {
             $vid_tags .= "<span class=\"ctag-off\">{$value}</span>";
         }
         $tag_count++;
     }
     print $vid_tags;
     /////////////////////
     // Is Live
     ////////////////////
     $is_live = "<label for=\"display\">" . _("Live?") . "</label>\n<input name=\"display\" type=\"radio\" value=\"1\"";
     if ($this->_display == 1) {
         $is_live .= " checked=\"checked\"";
     }
     $is_live .= " /> " . _("Yes") . " &nbsp;&nbsp;&nbsp; <input name=\"display\" type=\"radio\" value=\"0\"";
     if ($this->_display == 0) {
         $is_live .= " checked=\"checked\"";
     }
     $is_live .= " /> " . _("No") . "\n<br class=\"clear-both\" /><br />";
     /////////////////////
     // Thumbnail
     ////////////////////
     $this->_vid_loc = $AssetPath . "images/video_thumbs/" . $this->_video_id . "_medium.jpg";
     $thumbnail = "<img src=\"" . $this->_vid_loc . "\" alt=\"" . _("Thumbnail") . "\" />";
     if ($this->_video_id != "") {
         $thumbnail .= "<p><a href=\"../includes/set_image.php?video_id={$this->_video_id}\" id=\"load_photo\">" . _("Click to update thumbnail") . "</a></p>";
     } else {
         $thumbnail .= "<p>" . _("You can change the thumbnail after saving.") . "</p>";
     }
     echo "\n\n</div>\n</div>\n</div>\n<!-- right hand column -->";
     $last_mod = _("Last modified: ") . lastModded("video", $this->_video_id);
     $title_save_box = "<div id=\"last_edited\">{$last_mod}</div>";
     print "<div class=\"pure-u-1-3\">\n    <div class=\"pluslet\">\n      <div class=\"titlebar\">\n        <div class=\"titlebar_text\">{$title_save_box}</div>\n        <div class=\"titlebar_options\"></div>\n      </div>\n      <div class=\"pluslet_body\">\n    <input type=\"submit\" name=\"submit_record\" class=\"button pure-button pure-button-primary\" value=\"" . _("Save Now") . "\" />";
     // if a) it's not a new record, and  b) we're an admin or c) we are listed as a librarian for this guide, show delete button
     if ($this->_video_id != "") {
         if ($_SESSION["admin"] == "1" || $_SESSION["eresource_mgr"] == "1") {
             echo "<input type=\"submit\" name=\"delete_record\" class=\"button pure-button delete_button pure-button-warning\" value=\"" . _("Delete Forever!") . "\">";
         }
     }
     echo "</div></div>\n        <div class=\"pluslet\">\n      <div class=\"titlebar\">\n        <div class=\"titlebar_text\"></div>\n        <div class=\"titlebar_options\"></div>\n      </div>\n      <div class=\"pluslet_body\">\n            <label for=\"date\">" . _("Create Date") . "</label>\n            <input type=\"text\" name=\"date\" value=\"" . $this->_date . "\" />\n            <span class=\"smaller\">" . "YYYY-MM-DD" . "</span>\n            <br /><br />\n            {$is_live}\n            </div></div>\n            </form>";
     makePluslet(_("Thumbnail"), $thumbnail, "no_overflow");
 }
开发者ID:johnwinsor,项目名称:SubjectsPlus,代码行数:91,代码来源:Video.php

示例13: Querier

///////////////
// Sources
///////////////
$querierDept = new Querier();
$qSource = "select source_id, source, rs from source order by rs, source";
$sourceArray = $querierDept->query($qSource);
foreach ($sourceArray as $value) {
    $ourlist .= "<li id=\"item-{$value['0']}\" class=\"sortable_item\" style=\"margin-bottom: .5em;\"><a id=\"delete-{$value['0']}\"><i class=\"fa fa-times\" title=\"" . _("Remove") . "\"></i></a> &nbsp; <input type=\"text\" size=\"40\" name=\"source[]\" value=\"{$value['1']}\" /> <input type=\"hidden\" name=\"source_id[]\" value=\"{$value['0']}\" /></li>";
}
$source_box = "\n<form id=\"sources\" action=\"\" method=\"post\">\n<button class=\"button\" id=\"save_guide\"  class=\"button pure-button pure-button-primary\" style=\"display: block;\" name=\"update_sources\" >" . _("SAVE CHANGES") . "</button>\n\n<p>" . _("Enter source type label.  Drag sources to change sort order.") . "</p>\n<br />\n\n<ul id=\"sortable-\" class=\"sortable_list\">\n{$ourlist}\n</ul>\n</form>\n";
$add_source_box = "\n<form id=\"new_source\" action=\"\" method=\"post\">\n<span class=\"record_label\">" . _("Source Name") . "</span><br />\n<input type=\"text\" name=\"source\" id=\"\" size=\"40\" class=\"\" value=\"\">\n<br /><br />\n<button class=\"button\" id=\"add_source\" name=\"add_source\">" . _("Add New Source") . "</button>\n</form>";
print feedBack($feedback);
print "\n\n<form id=\"sources\" action=\"\" method=\"post\">\n\n<div class=\"pure-g\">\n  <div class=\"pure-u-2-3\">\n";
makePluslet(_("Sources"), $source_box, "no_overflow");
print "</div>\n<div class=\"pure-u-1-3\">";
makePluslet(_("Add Source"), $add_source_box, "no_overflow");
print "</div>";
// close pure-u-
print "</div>";
// close pure
include "../includes/footer.php";
?>
<script type="text/javascript">
 jQuery(function() {

   ////////////////////////////
   // MAKE COLUMNS SORTABLE
   // Make "Save Changes" button appear on sorting
   ////////////////////////////
   // connectWith: '.sort-column',
开发者ID:johnwinsor,项目名称:SubjectsPlus,代码行数:30,代码来源:sources.php

示例14: _

$staff_drop_close = "</select>\n";
$staff_dropdown = $staff_drop_base . $staff_drop_vals . $staff_drop_close;
$staff_dropdown_ticks = $staff_drop_ticks . $staff_drop_vals . $staff_drop_close;
// Get all the guide types into a dropdown
$type_drop_base = "<select name=\"filter_type_id\" id=\"filter_by_type\">\n\n<option value=\"All\">" . _("All") . "</option>\n";
$type_drop_ticks = "<select name=\"filter_type_id\" id=\"filter_by_type_ticked\">\n";
$type_drop_vals = "\n<option value=\"\" class=\"guide-status\">" . _("~~Guide Status~~") . "</option>\n\n<option value=\"Public\">" . _("Public") . "</option>\n\n<option value=\"Hidden\">" . _("Hidden") . "</option>\n\n<option value=\"Suppressed\">" . _("Suppressed") . "</option>\n\n<option value=\"\" class=\"guide-status\">" . _("~~Guide Types~~") . "</option>\n";
foreach ($guide_types as $key => $value) {
    $type_drop_vals .= "<option value=\"{$key}\">{$value}</option>\n";
}
$type_drop_close = "</select>\n";
$type_dropdown = $type_drop_base . $type_drop_vals . $type_drop_close;
$type_dropdown_ticks = $type_drop_ticks . $type_drop_vals . $type_drop_close;
$mg_box = "\n\n<div class=\"tick-wrap\"  style=\"padding: 1em 10px;\">\n\t<span class=\"filter\" id=\"ticked_label\">" . _("Ticked Guides") . "</span>\n\t<span class=\"filter\">" . _("Show Guides By") . " {$staff_dropdown}</span>\n\t<span class=\"filter\">" . _("Show") . " {$type_dropdown}</span>\n</div>\n\n\n<div id=\"tickzone\" style=\"display: none;padding: 1em 10px;\"><span class=\"filter_ticks\" >" . _("Assign to ") . " {$staff_dropdown_ticks}</span><span class=\"filter_ticks\" > Change To {$type_dropdown_ticks}</span><span class=\"filter_ticks\" id=\"tick_forget\">Never Mind</span></div>\n</div>\n<div id=\"listing_space\" style=\" \">\n{$staff_list}\n</div>\n</div>\n";
print "\n<div class=\"pure-g\">\n  <div class=\"pure-u-2-3\">";
makePluslet(_("Manage Guides"), $mg_box, "no_overflow");
print "</div></div>";
include "../includes/footer.php";
?>

<script type="text/javascript">

$(function (){

$('#filter_by_type').livequery('change', function() {
	var type_text = $('#filter_by_type :selected').text();
	$("#listing_space").load("admin_bits.php", {action: 'guide_type', filter_key: type_text});
});

$('#filter_by_staff').livequery('change', function() {
	var staff_id = $('#filter_by_staff :selected').val();
开发者ID:johnwinsor,项目名称:SubjectsPlus,代码行数:31,代码来源:manage_guides.php

示例15: outputRelatedPluslets

 public function outputRelatedPluslets()
 {
     global $BaseURL;
     $db = new Querier();
     $q = "SELECT sub.subject_id, p.pluslet_id, t.tab_index, p.title, sub.subject\n\t\t\tFROM pluslet p\n\t\t\tINNER JOIN pluslet_section ps\n\t\t\tON p.pluslet_id = ps.pluslet_id\n\t\t\tINNER JOIN section s\n\t\t\tON ps.section_id = s.section_id\n\t\t\tINNER JOIN tab t\n\t\t\tON s.tab_id = t.tab_id\n\t\t\tINNER JOIN subject sub\n\t\t\tON t.subject_id = sub.subject_id\n\t\t\tWHERE p.body LIKE '%{{dab},{{$this->_record_id}}%'";
     $lobjRows = $db->query($q);
     $lstrBody = "";
     foreach ($lobjRows as $lobjRow) {
         $lstrBody .= "<div><a href=\"{$BaseURL}control/guides/guide.php?subject_id={$lobjRow['subject_id']}#box-{$lobjRow['tab_index']}-{$lobjRow['pluslet_id']}\">\n\t\t\t\t\t\t{$lobjRow['subject']} <span class=\"small_extra\">{$lobjRow['title']}</span>\n\t\t\t\t\t\t</a></div>";
     }
     makePluslet('Referenced in Pluslets', $lstrBody, 'no-overflow');
 }
开发者ID:kenirwin,项目名称:SubjectsPlus,代码行数:12,代码来源:Record.php


注:本文中的makePluslet函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。