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


PHP htmlPrep函数代码示例

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


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

示例1: array

         print "<select name='{$count}-effortValue' id='{$count}-effortValue' style='width:50px'>";
         try {
             $dataSelect = array("gibbonScaleID" => $gibbonScaleIDEffort);
             $sqlSelect = "SELECT * FROM gibbonScaleGrade WHERE gibbonScaleID=:gibbonScaleID ORDER BY sequenceNumber";
             $resultSelect = $connection2->prepare($sqlSelect);
             $resultSelect->execute($dataSelect);
         } catch (PDOException $e) {
         }
         print "<option value=''></option>";
         $sequence = "";
         $descriptor = "";
         while ($rowSelect = $resultSelect->fetch()) {
             if ($rowEntry["effortValue"] == $rowSelect["value"]) {
                 print "<option selected value='" . htmlPrep($rowSelect["value"]) . "'>" . htmlPrep(_($rowSelect["value"])) . "</option>";
             } else {
                 print "<option value='" . htmlPrep($rowSelect["value"]) . "'>" . htmlPrep(_($rowSelect["value"])) . "</option>";
             }
         }
         print "</select>";
     }
     print "<div style='height: 20px'>";
     if ($row2["gibbonRubricIDEffort"] != "") {
         print "<a class='thickbox' href='" . $_SESSION[$guid]["absoluteURL"] . "/fullscreen.php?q=/modules/" . $_SESSION[$guid]["module"] . "/markbook_view_rubric.php&gibbonRubricID=" . $row2["gibbonRubricIDEffort"] . "&gibbonCourseClassID={$gibbonCourseClassID}&gibbonMarkbookColumnID={$gibbonMarkbookColumnID}&gibbonPersonID=" . $rowStudents["gibbonPersonID"] . "&type=effort&width=1100&height=550'><img style='margin-top: 3px' title='" . _('Mark Rubric') . "' src='./themes/" . $_SESSION[$guid]["gibbonThemeName"] . "/img/rubric.png'/></a>";
     }
     print "</div>";
     print "</td>";
 }
 if ($row2["comment"] == "Y" or $row2["uploadedResponse"] == "Y") {
     print "<td style='text-align: right'>";
     if ($row2["comment"] == "Y") {
         print "<script type='text/javascript'>";
开发者ID:actcattest001,项目名称:core,代码行数:31,代码来源:markbook_edit_data.php

示例2: _

							<optgroup label='--<?php 
        print _('All Enrolled Students by Alphabet');
        ?>
--'>
							<?php 
        $students = array();
        $count = 0;
        try {
            $dataSelect = array("gibbonSchoolYearID" => $gibbonSchoolYearID);
            $sqlSelect = "SELECT gibbonFinanceInvoiceeID, preferredName, surname, gibbonRollGroup.name AS name, dayType FROM gibbonPerson, gibbonStudentEnrolment, gibbonRollGroup, gibbonFinanceInvoicee WHERE gibbonPerson.gibbonPersonID=gibbonStudentEnrolment.gibbonPersonID AND gibbonStudentEnrolment.gibbonRollGroupID=gibbonRollGroup.gibbonRollGroupID AND gibbonFinanceInvoicee.gibbonPersonID=gibbonPerson.gibbonPersonID AND status='FULL' AND gibbonRollGroup.gibbonSchoolYearID=:gibbonSchoolYearID ORDER BY surname, preferredName";
            $resultSelect = $connection2->prepare($sqlSelect);
            $resultSelect->execute($dataSelect);
        } catch (PDOException $e) {
        }
        while ($rowSelect = $resultSelect->fetch()) {
            print "<option value='" . $rowSelect["gibbonFinanceInvoiceeID"] . "'>" . formatName("", htmlPrep($rowSelect["preferredName"]), htmlPrep($rowSelect["surname"]), "Student", true) . " - " . htmlPrep($rowSelect["name"]) . "</option>";
        }
        ?>
							</optgroup>
							
						</select>
					</td>
				</tr>
				<?php 
        //BILLING TYPE CHOOSER
        ?>
				<tr>
					<td> 
						<b><?php 
        print _('Scheduling');
        ?>
开发者ID:actcattest001,项目名称:core,代码行数:31,代码来源:invoices_manage_add.php

示例3: _

							name2.add(Validate.Presence);
						</script>
					</td>
				</tr>
				<tr>
					<td> 
						<b><?php 
            print _('Short Name');
            ?>
 *</b><br/>
						<span style="font-size: 90%"><i></i></span>
					</td>
					<td class="right">
						<input name="nameShort" id="nameShort" maxlength=10 value="<?php 
            if (isset($row["nameShort"])) {
                print htmlPrep(_($row["nameShort"]));
            }
            ?>
" type="text" style="width: 300px">
						<script type="text/javascript">
							var nameShort=new LiveValidation('nameShort');
							nameShort.add(Validate.Presence);
						</script>
					</td>
				</tr>
				<tr>
					<td> 
						<b><?php 
            print _('Description');
            ?>
 *</b><br/>
开发者ID:dpredster,项目名称:core,代码行数:31,代码来源:externalAssessments_manage_edit.php

示例4: catch

                            $sqlSelect = "SELECT * FROM gibbonScaleGrade WHERE gibbonScaleID=:gibbonScaleID ORDER BY sequenceNumber";
                            $resultSelect = $connection2->prepare($sqlSelect);
                            $resultSelect->execute($dataSelect);
                        } catch (PDOException $e) {
                        }
                        print "<option value=''></option>";
                        $sequence = "";
                        $descriptor = "";
                        while ($rowSelect = $resultSelect->fetch()) {
                            $selected = "";
                            if (!is_null($rowEntry)) {
                                if ($rowEntry["value"] == $rowSelect["value"]) {
                                    $selected = "selected";
                                }
                            }
                            print "<option {$selected} value='" . $rowSelect["gibbonScaleGradeID"] . "'>" . htmlPrep(_($rowSelect["value"])) . "</option>";
                        }
                        print "</select>";
                        print "</td>";
                    }
                }
                ?>
						<tr>
							<td colspan=2 class="right">
								<input name="count" id="count" value="<?php 
                print $count;
                ?>
" type="hidden">
								<input type="submit" value="<?php 
                print _("Submit");
                ?>
开发者ID:actcattest001,项目名称:core,代码行数:31,代码来源:markbook_edit_targets.php

示例5: htmlPrep

                 $output .= "field" . $fieldName . ".add( Validate.Format, {pattern:";
                 if ($_SESSION[$guid]["i18n"]["dateFormatRegEx"] == "") {
                     $output .= "/^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\\d\\d\$/i";
                 } else {
                     $output .= $_SESSION[$guid]["i18n"]["dateFormatRegEx"];
                 }
                 $output .= ", failureMessage: 'Use " . $_SESSION[$guid]["i18n"]["dateFormat"] . ".' } );";
                 $output .= "</script>";
                 $output .= "<script type='text/javascript'>";
                 $output .= "\$(function() {";
                 $output .= "\$( '#field" . $fieldName . "' ).datepicker();";
                 $output .= "});";
                 $output .= "</script>";
             } else {
                 if ($field["type"] == "URL") {
                     $output .= "<input maxlength='" . $field["options"] . "' name='field" . $fieldName . "' id='field" . $fieldName . "' value='" . htmlPrep($field["default"]) . "' type='text' style='width: 300px'>";
                     $output .= "<script type='text/javascript'>";
                     $output .= "var field" . $fieldName . "=new LiveValidation('field" . $fieldName . "');";
                     $output .= "field" . $fieldName . ".add( Validate.Format, { pattern: /(http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?/, failureMessage: \"Must start with http://\" } );";
                     $output .= "</script>";
                 }
             }
         }
     }
 }
 $output .= "</td>";
 $output .= "</tr>";
 //NEED LIVE VALIDATION
 if ($field["required"] == "Y") {
     if ($field["type"] == "Text" or $field["type"] == "Textarea" or $field["type"] == "Date" or $field["type"] == "URL") {
         $output .= "<script type='text/javascript'>";
开发者ID:actcattest001,项目名称:core,代码行数:31,代码来源:library_manage_catalog_add_ajax.php

示例6: receiptContents

function receiptContents($guid, $connection2, $gibbonFinanceInvoiceID, $gibbonSchoolYearID, $currency = "", $email = FALSE)
{
    $return = "";
    try {
        $data = array("gibbonSchoolYearID" => $gibbonSchoolYearID, "gibbonSchoolYearID2" => $gibbonSchoolYearID, "gibbonFinanceInvoiceID" => $gibbonFinanceInvoiceID);
        $sql = "SELECT gibbonPerson.gibbonPersonID, studentID, surname, preferredName, gibbonFinanceInvoice.*, companyContact, companyName, companyAddress, gibbonRollGroup.name AS rollgroup FROM gibbonFinanceInvoice JOIN gibbonFinanceInvoicee ON (gibbonFinanceInvoice.gibbonFinanceInvoiceeID=gibbonFinanceInvoicee.gibbonFinanceInvoiceeID) JOIN gibbonPerson ON (gibbonFinanceInvoicee.gibbonPersonID=gibbonPerson.gibbonPersonID) JOIN gibbonStudentEnrolment ON (gibbonStudentEnrolment.gibbonPersonID=gibbonPerson.gibbonPersonID) JOIN gibbonRollGroup ON (gibbonStudentEnrolment.gibbonRollGroupID=gibbonRollGroup.gibbonRollGroupID) WHERE gibbonStudentEnrolment.gibbonSchoolYearID=:gibbonSchoolYearID2 AND gibbonFinanceInvoice.gibbonSchoolYearID=:gibbonSchoolYearID AND gibbonFinanceInvoiceID=:gibbonFinanceInvoiceID";
        $result = $connection2->prepare($sql);
        $result->execute($data);
    } catch (PDOException $e) {
        $return = FALSE;
    }
    if ($result->rowCount() == 1) {
        //Let's go!
        $row = $result->fetch();
        if ($email == TRUE) {
            $return .= "<div style='width: 100%; text-align: right'>";
            $return .= "<a target='_blank' href='" . $_SESSION[$guid]["absoluteURL"] . "'><img height='100px' width='400px' class='School Logo' alt='Logo' src='" . $_SESSION[$guid]["absoluteURL"] . "/" . $_SESSION[$guid]["organisationLogo"] . "'/></a>";
            $return .= "</div>";
        }
        //Receipt Text
        $receiptText = getSettingByScope($connection2, "Finance", "receiptText");
        if ($receiptText != "") {
            $return .= "<p>";
            $return .= $receiptText;
            $return .= "</p>";
        }
        $style = "";
        $style2 = "";
        $style3 = "";
        $style4 = "";
        if ($email == TRUE) {
            $style = "border-top: 1px solid #333; ";
            $style2 = "border-bottom: 1px solid #333; ";
            $style3 = "background-color: #f0f0f0; ";
            $style4 = "background-color: #f6f6f6; ";
        }
        //Receipt Details
        $return .= "<table cellspacing='0' style='width: 100%'>";
        $return .= "<tr>";
        $return .= "<td style='padding-top: 15px; padding-left: 10px; vertical-align: top; {$style} {$style3}' colspan=3>";
        $return .= "<span style='font-size: 115%; font-weight: bold'>" . _('Receipt To') . " (" . $row["invoiceTo"] . ")</span><br/>";
        if ($row["invoiceTo"] == "Company") {
            $invoiceTo = "";
            if ($row["companyContact"] != "") {
                $invoiceTo .= $row["companyContact"] . ", ";
            }
            if ($row["companyName"] != "") {
                $invoiceTo .= $row["companyName"] . ", ";
            }
            if ($row["companyAddress"] != "") {
                $invoiceTo .= $row["companyAddress"] . ", ";
            }
            $return .= substr($invoiceTo, 0, -2);
        } else {
            try {
                $dataParents = array("gibbonFinanceInvoiceeID" => $row["gibbonFinanceInvoiceeID"]);
                $sqlParents = "SELECT parent.title, parent.surname, parent.preferredName, parent.email, parent.address1, parent.address1District, parent.address1Country, homeAddress, homeAddressDistrict, homeAddressCountry FROM gibbonFinanceInvoicee JOIN gibbonPerson AS student ON (gibbonFinanceInvoicee.gibbonPersonID=student.gibbonPersonID) JOIN gibbonFamilyChild ON (gibbonFamilyChild.gibbonPersonID=student.gibbonPersonID) JOIN gibbonFamily ON (gibbonFamilyChild.gibbonFamilyID=gibbonFamily.gibbonFamilyID) JOIN gibbonFamilyAdult ON (gibbonFamily.gibbonFamilyID=gibbonFamilyAdult.gibbonFamilyID) JOIN gibbonPerson AS parent ON (gibbonFamilyAdult.gibbonPersonID=parent.gibbonPersonID) WHERE gibbonFinanceInvoiceeID=:gibbonFinanceInvoiceeID AND (contactPriority=1 OR (contactPriority=2 AND contactEmail='Y')) ORDER BY contactPriority, surname, preferredName";
                $resultParents = $connection2->prepare($sqlParents);
                $resultParents->execute($dataParents);
            } catch (PDOException $e) {
                $return .= "<div class='error'>" . $e->getMessage() . "</div>";
            }
            if ($resultParents->rowCount() < 1) {
                $return .= "<div class='warning'>" . _('There are no family members available to send this receipt to.') . "</div>";
            } else {
                $return .= "<ul style='margin-top: 3px; margin-bottom: 3px'>";
                while ($rowParents = $resultParents->fetch()) {
                    $return .= "<li>";
                    $invoiceTo = "";
                    $invoiceTo .= "<b>" . formatName(htmlPrep($rowParents["title"]), htmlPrep($rowParents["preferredName"]), htmlPrep($rowParents["surname"]), "Parent", false) . "</b>, ";
                    if ($rowParents["address1"] != "") {
                        $invoiceTo .= $rowParents["address1"] . ", ";
                        if ($rowParents["address1District"] != "") {
                            $invoiceTo .= $rowParents["address1District"] . ", ";
                        }
                        if ($rowParents["address1Country"] != "") {
                            $invoiceTo .= $rowParents["address1Country"] . ", ";
                        }
                    } else {
                        $invoiceTo .= $rowParents["homeAddress"] . ", ";
                        if ($rowParents["homeAddressDistrict"] != "") {
                            $invoiceTo .= $rowParents["homeAddressDistrict"] . ", ";
                        }
                        if ($rowParents["homeAddressCountry"] != "") {
                            $invoiceTo .= $rowParents["homeAddressCountry"] . ", ";
                        }
                    }
                    $return .= substr($invoiceTo, 0, -2);
                    $return .= "</li>";
                }
                $return .= "</ul>";
            }
        }
        $return .= "</td>";
        $return .= "</tr>";
        $return .= "<tr>";
        $return .= "<td style='width: 33%; padding-top: 15px; padding-left: 10px; vertical-align: top; {$style} {$style4}'>";
        $return .= "<span style='font-size: 115%; font-weight: bold'>" . _('Fees For') . "</span><br/>";
        $return .= formatName("", htmlPrep($row["preferredName"]), htmlPrep($row["surname"]), "Student", true) . "<br/><span style='font-style: italic; font-size: 85%'>" . _('Roll Group') . " " . $row["rollgroup"] . "</span><br/>";
        $return .= "</td>";
//.........这里部分代码省略.........
开发者ID:actcattest001,项目名称:core,代码行数:101,代码来源:moduleFunctions.php

示例7: _

			<form method="post" action="<?php 
            print $_SESSION[$guid]["absoluteURL"] . "/modules/" . $_SESSION[$guid]["module"] . "/family_manage_edit_editChildProcess.php?gibbonFamilyID={$gibbonFamilyID}&gibbonPersonID={$gibbonPersonID}&search={$search}";
            ?>
">
				<table class='smallIntBorder' cellspacing='0' style="width: 100%">	
					<tr>
						<td style='width: 275px'> 
							<b><?php 
            print _('Child\'s Name');
            ?>
 *</b><br/>
							<span style="font-size: 90%"><i></i></span>
						</td>
						<td class="right">
							<input readonly name="child" id="child" maxlength=200 value="<?php 
            print formatName("", htmlPrep($row["preferredName"]), htmlPrep($row["surname"]), "Student");
            ?>
" type="text" style="width: 300px">
							<script type="text/javascript">
								var child=new LiveValidation('child');
								child.add(Validate.Exclusion, { within: ['Please select...'], failureMessage: "<?php 
            print _('Select something!');
            ?>
"});
							 </script>
						</td>
					</tr>
					<tr>
						<td> 
							<b><?php 
            print _('Comment');
开发者ID:actcattest001,项目名称:core,代码行数:31,代码来源:family_manage_edit_editChild.php

示例8: _

            print _('This value cannot be changed.');
            ?>
</i></span>
						</td>
						<td class="right">
							<?php 
            try {
                $dataSelect = array("gibbonPersonID" => $row["gibbonPersonIDStatusResponsible"]);
                $sqlSelect = "SELECT gibbonPersonID, surname, preferredName, status FROM gibbonPerson WHERE gibbonPersonID=:gibbonPersonID ORDER BY surname, preferredName";
                $resultSelect = $connection2->prepare($sqlSelect);
                $resultSelect->execute($dataSelect);
            } catch (PDOException $e) {
            }
            if ($resultSelect->rowCount() == 1) {
                $rowSelect = $resultSelect->fetch();
                print "<input readonly name='gibbonPersonIDStatusResponsiblename' id='gibbonPersonIDStatusResponsiblename' value='" . formatName("", htmlPrep($rowSelect["preferredName"]), htmlPrep($rowSelect["surname"]), "Student", true) . "' type='text' style='width: 300px'>";
                print "<input name='gibbonPersonIDStatusResponsible' id='gibbonPersonIDStatusResponsible' value='" . $row["gibbonPersonIDStatusResponsible"] . "' type='hidden' style='width: 300px'>";
            }
            ?>
						</td>
					</tr>
					<tr>
						<?php 
            $loanLength = getSettingByScope($connection2, "Library", "defaultLoanLength");
            if (is_numeric($loanLength) == FALSE or $loanLength < 0) {
                $loanLength = 7;
            }
            ?>
						<td> 
							<b><?php 
            print _('Expected Return Date');
开发者ID:dpredster,项目名称:core,代码行数:31,代码来源:library_lending_item_renew.php

示例9: getEditor

    print getEditor($guid, TRUE, "body", $signature, 20, true, true, false, true);
    ?>
				</td>
			</tr>
			
			<select name="roleCategories[]" id="roleCategories[]" multiple style="display: none">
				<?php 
    try {
        $dataSelect = array();
        $sqlSelect = "SELECT DISTINCT category FROM gibbonRole ORDER BY category";
        $resultSelect = $connection2->prepare($sqlSelect);
        $resultSelect->execute($dataSelect);
    } catch (PDOException $e) {
    }
    while ($rowSelect = $resultSelect->fetch()) {
        print "<option selected value='" . $rowSelect["category"] . "'>" . htmlPrep(_($rowSelect["category"])) . "</option>";
    }
    ?>
			</select>
						
			<tr>
				<td>
					<span style="font-size: 90%"><i>* <?php 
    print _("denotes a required field");
    ?>
</i></span>
				</td>
				<td class="right">
					<input type="submit" value="<?php 
    print _("Submit");
    ?>
开发者ID:dpredster,项目名称:core,代码行数:31,代码来源:messenger_postQuickWall.php

示例10: explode

                    ?>
<br/>
									</i></span>
								</td>
								<td class="right">
									<?php 
                    $agreements = explode(",", $studentAgreementOptions);
                    $agreementChecks = explode(",", $row["studentAgreements"]);
                    foreach ($agreements as $agreement) {
                        $checked = "";
                        foreach ($agreementChecks as $agreementCheck) {
                            if (trim($agreement) == trim($agreementCheck)) {
                                $checked = "checked";
                            }
                        }
                        print $agreement . " <input {$checked} type='checkbox' name='studentAgreements[]' value='" . htmlPrep(trim($agreement)) . "'/><br/>";
                    }
                    ?>
					
								</td>
							</tr>
							<?php 
                }
            }
            //CUSTOM FIELDS
            $fields = unserialize($row["fields"]);
            $resultFields = getCustomFields($connection2, $guid, $student, $staff, $parent, $other);
            if ($resultFields->rowCount() > 0) {
                ?>
						<tr class='break'>
							<td colspan=2> 
开发者ID:dpredster,项目名称:core,代码行数:31,代码来源:user_manage_edit.php

示例11: LiveValidation

							var name2=new LiveValidation('name');
							name2.add(Validate.Presence);
						 </script>
					</td>
				</tr>
				<tr>
					<td> 
						<b><?php 
            print _('Description');
            ?>
</b><br/>
						<span style="font-size: 90%"><i></i></span>
					</td>
					<td class="right">
						<input name="description" id="description" maxlength=255 value="<?php 
            print htmlPrep($row["description"]);
            ?>
" type="text" style="width: 300px">
					</td>
				</tr>
				<tr>
					<td> 
						<b><?php 
            print _('School Opens');
            ?>
</b>
					</td>
					<td class="right">
						<select style="width:100px" name="schoolOpenM" id="schoolOpenM">
							<?php 
            print "<option value='Minutes'>" . _('Minutes') . "</option>";
开发者ID:actcattest001,项目名称:core,代码行数:31,代码来源:schoolYearSpecialDay_manage_edit.php

示例12: _

</b>
										<span style="font-size: 90%"><i><?php 
                        print _('(CC Self?)');
                        ?>
</i></span>
									</td>
									<td class="right">
										<?php 
                        print $_SESSION[$guid]["email"];
                        ?>
 <input type='checkbox' name='emails[]' value='<?php 
                        print $_SESSION[$guid]["email"];
                        ?>
'/>
										<input type='hidden' name='names[]' value='<?php 
                        print formatName("", htmlPrep($_SESSION[$guid]["preferredName"]), htmlPrep($_SESSION[$guid]["surname"]), "Parent", FALSE);
                        ?>
'/>
									</td>
								</tr>
								<?php 
                    }
                }
            }
            ?>
			
					<tr>
						<td>
							<span style="font-size: 90%"><i>* <?php 
            print _("denotes a required field");
            ?>
开发者ID:actcattest001,项目名称:core,代码行数:31,代码来源:invoices_manage_edit.php

示例13: _

">
				<table class='smallIntBorder' cellspacing='0' style="width: 100%">	
					<tr>
						<td style='width: 275px'> 
							<b><?php 
            print _('Name');
            ?>
 *</b><br/>
							<span style="font-size: 90%"><i><?php 
            print _('Must be unique.');
            ?>
</i></span>
						</td>
						<td class="right">
							<input name="name" id="name" maxlength=30 value="<?php 
            print htmlPrep($row["name"]);
            ?>
" type="text" style="width: 300px">
							<script type="text/javascript">
								var name2=new LiveValidation('name');
								name2.add(Validate.Presence);
							 </script> 
						</td>
					</tr>
					<tr>
						<td>
							<span style="font-size: 90%"><i>* <?php 
            print _("denotes a required field");
            ?>
</i></span>
						</td>
开发者ID:actcattest001,项目名称:core,代码行数:31,代码来源:district_manage_edit.php

示例14: _

					</tr>
					<tr>
						<td> 
							<b><?php 
            print _('Sequence Number');
            ?>
 *</b><br/>
							<span style="font-size: 90%"><i><?php 
            print _('Must be unique. Controls chronological ordering.');
            ?>
</i></span>
						</td>
						<td class="right">
							<input name="sequenceNumber" id="sequenceNumber" maxlength=3 value="<?php 
            if (isset($row["sequenceNumber"])) {
                print htmlPrep($row["sequenceNumber"]);
            }
            ?>
" type="text" style="width: 300px">
							<script type="text/javascript">
								var sequenceNumber=new LiveValidation('sequenceNumber');
								sequenceNumber.add(Validate.Numericality);
								sequenceNumber.add(Validate.Presence);
							</script>
						</td>
					</tr>
					<tr>
						<td> 
							<b><?php 
            print _('Start Date');
            ?>
开发者ID:dpredster,项目名称:core,代码行数:31,代码来源:budgetCycles_manage_edit.php

示例15: _

                print _('Use Control, Command and/or Shift to select multiple.');
                ?>
</i></span>
						</td>
						<td class="right">
							<select name="guests[]" id="guests[]" multiple style="width: 302px; height: 150px">
								<?php 
                try {
                    $dataSelect = array();
                    $sqlSelect = "SELECT gibbonPersonID, title, preferredName, surname, category FROM gibbonPerson JOIN gibbonRole ON (gibbonPerson.gibbonRoleIDPrimary=gibbonRole.gibbonRoleID) WHERE status='Full' ORDER BY surname, preferredName";
                    $resultSelect = $connection2->prepare($sqlSelect);
                    $resultSelect->execute($dataSelect);
                } catch (PDOException $e) {
                }
                while ($rowSelect = $resultSelect->fetch()) {
                    print "<option value='" . $rowSelect["gibbonPersonID"] . "'>" . formatName(htmlPrep($rowSelect["title"]), htmlPrep($rowSelect["preferredName"]), htmlPrep($rowSelect["surname"]), htmlPrep($rowSelect["category"]), true, true) . "</option>";
                }
                ?>
							</select>
						</td>
						<tr>
							<td> 
								<b><?php 
                print _('Role');
                ?>
</b><br/>
							</td>
							<td class="right">
								<select name="role" id="role" style="width: 302px">
									<option value="Guest Student"><?php 
                print _('Guest Student');
开发者ID:dpredster,项目名称:core,代码行数:31,代码来源:planner_edit.php


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