endsection();
}
//URL
if ($style == "mla7") {
    beginsection(urlsection, "URL:", yes);
    urlinput(urlebookinput, $style, $source, no);
    endsection();
} elseif ($style == "apa6") {
    beginsection(urlsection, "URL:", yes);
    urlinput(urlebookinput, $style, $source, yes);
    endsection();
}
//DOI
if ($style == "apa6") {
    beginsection(doisection, "DOI:", yes);
    echo textbox(doiebookinput, textbox, 45, none, novalue);
    endsection();
}
?>
			</div>
		</div>
			<?php 
//Submit button
beginsection(submitbutton, "", yes);
echo submitbutton(submitclass);
endsection();
//footer
footercreate();
//citation holder
citationhold();
?>
//Edition
if ($style == "mla7") {
    beginsection(dbedition, "Edition:", yes);
    echo textbox(dbeditioninput, textbox, 18, none, novalue);
    endsection();
}
//Pages
if ($style == "mla7") {
    beginsection(dbpages, "Pages:", no);
    pages(dbpages);
    endsection();
}
//Database
if ($style == "mla7") {
    beginsection(databasetitle, "Database title:", yes);
    echo textbox(databaseinput, textbox, 45, none, novalue);
    endsection();
}
//Date accessed
if ($style == "mla7") {
    beginsection(dbaccessdate, "Date accessed:", yes);
    dateinput(dbaccessdate, textbox, 12, none, novalue);
    endsection();
}
//URL
if ($style == "mla7") {
    beginsection(urlsection, "URL:", yes);
    urlinput(urldbinput, $style, $source, no);
    endsection();
} elseif ($style == "apa6") {
    beginsection(urlsection, "Database URL:", yes);
Exemple #3
0
 <li>
   <strong>( optional &mdash; for binary ROM image format only )</strong> <br><br>
   If you choose <em>Binary ROM image</em> as your output format, you must<br>
   enter <strong>4 hex digits</strong> below for
   <em>PCI VENDOR CODE</em> and <em>PCI DEVICE CODE</em>  <br>
   that match the NIC device for which you are making this image.<br><br>
   Information on how to determine NIC PCI IDs may be found
   <a href="http://etherboot.org/wiki/romburning"
   target="_blank">here</a>.
   <br><br>
   PCI VENDOR CODE:  <? echo textbox ( "pci_vendor_code",
   isset ( $_POST['pci_vendor_code'] ) ? $_POST['pci_vendor_code']
           : "", 6 ); ?>
   &nbsp;&nbsp;
   PCI DEVICE CODE:  <? echo textbox ( "pci_device_code",
   isset ( $_POST['pci_device_code'] ) ? $_POST['pci_device_code']
           : "", 6 ); ?>
   <h4>Please note for ROM images:</h4>
   <ul>
     <li>
       If you enter PCI IDs, we will attempt to determine the correct<br>
       driver to support them, and will ignore any NIC type entered
       above.<br><br>
     </li>
     <li>
       gPXE does not support all possible PCI IDs for supported
       NICs.
       <br><br>
     </li>
   </ul>
 </li>
function urlinput($id, $style, $source, $showor)
{
    $html = textbox($id, textbox, 45, none, novalue);
    if ($style == "apa6") {
        if ($showor == "yes") {
            $html .= '<br /> OR';
        }
    }
    if ($style == "mla7") {
        $html .= '<br />MLA 7 says to omit the URL unless the source cannot be located without it, or if your instructor requires it.';
    }
    echo $html;
}
Exemple #5
0
/**
 * Output html code to display all compile options as a table
 *
 * @param array $flags array of compile options
 *
 * @return void
 */
function echo_flags ( $flags )
{
    global $flag_table;

    echo "<table>\n";

	foreach ( $flag_table as $key => $props ) {

        // Hide parameters from users that should not be changed.
        $hide_from_user = isset ( $props["hide_from_user"] ) ? $props["hide_from_user"] : "******";

        $flag = $props["flag"];
        $type = $props["type"];

        $value = isset ( $flags[$flag] ) ? $flags[$flag] : '';

        if ( $hide_from_user == "yes" ) {

            // Hidden flags cannot not be set by the user.  We use hidden form
            // fields to keep them at their default values.
            if ( $type != "header" ) {
                echo hidden ( $flag, $value );
            }

        } else {

            // Flag (gPXE compile option) should be displayed to user

            if ( $type == "header" ) {

                $label = $props["label"];
                echo "<td colspan=2><hr><h3>$label</h3><hr></td>";

            } else if ($type == "on/off" ) {

                echo "<td>", checkbox ( $flag, $value ), "</td><td><strong>$flag</strong></td>";

            } else {   // don't display checkbox for non-on/off flags

                echo "<td>&nbsp;</td><td><strong>$flag: </strong>";

                if ($type == "choice" ) {
                    $options = $props["options"];
                    echo menubox($flag, $options, $value);

                } else {

                    echo textbox($flag, $value, ($type == "integer" ||
                                                 $type == "integer-hex"
                                                     ? 7 : 25));
                }
                echo "</td>";
            }
            echo "</tr>\n";

            if ( $type != "header" ) {
				echo "<tr><td>&nbsp;</td>";
				echo "<td>\n";
				if ( is_file ( "doc/$flag.html" ) ) {
					include_once "doc/$flag.html";
				}
				echo "\n</td></tr>\n";
            }
        }
    }
    echo "</table>";
}
beginsection(articletitle, "Article title:", yes);
echo textbox(articletitleinput, textbox, 45, none, novalue);
endsection();
//Website Title
if ($style == "mla7") {
    beginsection(websitetitle, "Web site title:", yes);
    echo textbox(websitetitleinput, textbox, 45, none, novalue);
    endsection();
} elseif ($style == "apa6") {
    beginsection(websitetitle, "Website title:", yes);
    echo textbox(websitetitleinput, textbox, 45, none, novalue);
    endsection();
}
//Publisher / sponsor
beginsection(publishersponsor, "Site publisher / sponsor:", yes);
echo textbox(publishersponsorinput, textbox, 45, none, novalue);
endsection();
//URL
if ($style == "mla7") {
    beginsection(urlsection, "URL:", yes);
    urlinput(urlwebsiteinput, $style, $source, no);
    endsection();
} elseif ($style == "apa6") {
    beginsection(urlsection, "URL:", yes);
    urlinput(urlwebsiteinput, $style, $source, no);
    endsection();
}
//Electronically published
beginsection(electronicpublish, "Electronically published:", yes);
dateinput(electronicpublish);
endsection();
    endsection();
}
//URL
if ($style == "mla7") {
    beginsection(urlsection, "URL:", yes);
    urlinput(urldbinput, $style, $source, no);
    endsection();
} elseif ($style == "apa6") {
    beginsection(urlsection, "URL:", yes);
    urlinput(urldbinput, $style, $source, yes);
    endsection();
}
//DOI
if ($style == "apa6") {
    beginsection(doisection, "DOI:", yes);
    echo textbox(doidbinput, textbox, 45, none, novalue);
    endsection();
}
//Date accessed
if ($style == "mla7") {
    beginsection(dbaccessdate, "Date accessed:", yes);
    dateinput(dbaccessdate);
    endsection();
}
?>
            </div>
        </div>
        <?php 
//Submit button
beginsection(submitbutton, "", yes);
echo submitbutton(submitclass);
Exemple #8
0
    <li>
      <strong>( optional &mdash; for binary ROM image format only )</strong> <br><br>
      If you choose <em>Binary ROM image</em> as your output format, you must<br>
      enter <strong>4 hex digits</strong> below for
      <em>PCI VENDOR CODE</em> and <em>PCI DEVICE CODE</em>  <br>
      that match the NIC device for which you are making this image.<br><br>
      Information on how to determine NIC PCI IDs may be found
      <a href="http://www.ipxe.org/howto/romburning"
      target="_blank">here</a>.
      <br><br>
      PCI VENDOR CODE:  <?php 
echo textbox("pci_vendor_code", isset($_POST['pci_vendor_code']) ? $_POST['pci_vendor_code'] : "", 6);
?>
      &nbsp;&nbsp;
      PCI DEVICE CODE:  <?php 
echo textbox("pci_device_code", isset($_POST['pci_device_code']) ? $_POST['pci_device_code'] : "", 6);
?>
      <h4>Please note for ROM images:</h4>
      <ul>
        <li>
          If you enter PCI IDs, we will attempt to determine the correct<br>
          driver to support them, and will ignore any NIC type entered
          above.<br><br>
        </li>
        <li>
          iPXE does not support all possible PCI IDs for supported
          NICs.
          <br><br>
        </li>
      </ul>
    </li>
_e("title (alphabetical)", 'yarpp');
?>
</option>
					<option value="post_title DESC" <?php 
echo yarpp_get_option('rss_order') == 'post_title DESC' ? ' selected="selected"' : '';
?>
><?php 
_e("title (reverse alphabetical)", 'yarpp');
?>
</option>
				</select>
				</td>
			</tr>
	
	<?php 
textbox('rss_no_results', __('Default display if no results:', 'yarpp'), '40', "<tr valign='top' name='rss_displayed'>\n\t\t\t<th scope='row'>");
?>
	<?php 
checkbox('rss_promote_yarpp', __("Help promote Yet Another Related Posts Plugin?", 'yarpp') . " <a href='#' class='info'>" . __('more&gt;', 'yarpp') . "<span>" . sprintf(__("This option will add the code %s. Try turning it on, updating your options, and see the code in the code example to the right. These links and donations are greatly appreciated."), "<code>" . htmlspecialchars(__("Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.", 'yarpp')) . "</code>") . "</span></a>", "<tr valign='top' name='rss_displayed'>\n\t\t\t<th class='th-full' colspan='2' scope='row'>");
?>
		</table>

	<div>
		<p class="submit">
			<input type="submit" name="update_yarpp" value="<?php 
_e("Update options", 'yarpp');
?>
" />
			<input type="submit" onclick='return confirm("<?php 
_e("Do you really want to reset your configuration?", 'yarpp');
?>
Exemple #10
0
function barcodeboxes($pid, $image, $fid, $transforms)
{
    global $db;
    $boxes = $db->GetAll("\r\n\t\tSELECT b.bid, b.tlx, b.tly, b.brx, b.bry, b.pid\r\n\t\tFROM boxes AS b\r\n\t\tJOIN boxgroupstype as bg ON (bg.bgid = b.bgid AND bg.btid = 5)\r\n\t\tWHERE b.pid = '{$pid}'");
    foreach ($boxes as $i) {
        $barval = barcode(crop($image, applytransforms($i, $transforms)));
        //print "<p>{$i['bid']} - :$barval:</p>";
        textbox($i['bid'], $fid, $barval);
    }
}
Exemple #11
0
echo " {$wikilang_author} ";
echo '<select name="user" class="inputCool"><option value="0">' . $wikilang_all . '</option>';
$uquery = "select distinct(authorID) from subs where subID={$id} and fversion={$fversion} and lang_id={$lang}";
$uresult = mysql_query($uquery);
while ($urow = mysql_fetch_assoc($uresult)) {
    $authorID = $urow['authorID'];
    $username = bd_getUsername($authorID);
    if (isset($user_filter) && $user_filter == $authorID) {
        echo '<option value="' . $authorID . '" selected>' . $username . '</option>';
    } else {
        echo '<option value="' . $authorID . '">' . $username . '</option>';
    }
}
echo '</select>';
echo $wikilang_search_text;
textbox("search", $search, 15, 50, "", "inputCool");
echo '<input type="submit" name="submit" class="coolBoton" value="' . $wikilang_apply_filter . '" />';
?>

</td></tr>
</form>
</table>


<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
<?php 
if ($lock) {
    echo '<td class="NewsTitle">&nbsp;</td>';
}
?>
Exemple #12
0
    $first_word = false;
}
/** Calculate text height */
$textheight = $y + $begin["height"] - $top / 2;
/** Draw background rectangle based on textheight */
$image = rectangle($image, 15, (250 - $textheight) / 2 - 5, $settings["width"] + 25, (250 - $textheight) / 2 + 5 + $textheight, 5, $rectangle);
imagecopy($image, $content, 20, (250 - $textheight) / 2, 0, 0, $settings["width"], $textheight);
// Copy text image to background image
$font = "tweet/fonts/GD/cocon.ttf";
$name = arabic("" . $data["name"]);
$current = textbox($name, $font, $settings["size"] + 4);
$y = (250 - $textheight) / 2 - $current["height"] - $current["top"] + 20;
$x = $current["left"] + $current["width"] + 30;
$x = $settings["width"] - $x + 10;
imagettftext($image, $settings["size"] + 4, 0, $x + 1, $y + 1, $clear, $font, $name);
// write Quote name shadow
imagettftext($image, $settings["size"] + 4, 0, $x, $y, $color, $font, $name);
// write Quote name
$current = textbox("ˮ", "tweet/fonts/GD/arial.ttf", 70);
// write Quote icon
imagettftext($image, 70, 0, $settings["width"] + 20 - $current["width"] + 1, $y + $current["top"] - 15, $color + 1, "tweet/fonts/GD/arial.ttf", "ˮ");
/** Set headers and print the image */
header("Content-type: image/png");
// set PNG header
imagepng($image);
// Print image as PNG
if (isset($_GET['name'])) {
    $nm = intval($_GET['name']);
    imagepng($image, 'i_' . $nm . '.png');
}
imagedestroy($image);