* input we should retrieve. An example is if we have:
* <select name="startMessage_1">
* <select name="startMessage_2">
- * <input type="submit" name="form_submit_1">
- * <input type="submit" name="form_submit_2">
+ * <input type="submit" name="form_submit_1" />
+ * <input type="submit" name="form_submit_2" />
* and we want to know which one of the select inputs should be
* returned as $startMessage (without the suffix!), this function
* decides by looking for either "form_submit_1" or "form_submit_2"
print htmlentities($buffer);
print '</pre></div>';
}
-
-
$header_tags = '';
- $header_tags .= "<meta name=\"robots\" content=\"noindex,nofollow\">\n";
+ $header_tags .= "<meta name=\"robots\" content=\"noindex,nofollow\" />\n";
$used_fontset = (!empty($chosen_fontset) ? $chosen_fontset : $default_fontset);
$used_fontsize = (!empty($chosen_fontsize) ? $chosen_fontsize : $default_fontsize);
* recommendations and switch to unicode.
*/
$header_tags .= "<!-- \xfd\xfe -->\n";
- $header_tags .= '<meta http-equiv="Content-type" content="text/html; charset=euc-jp">' . "\n";
+ $header_tags .= '<meta http-equiv="Content-type" content="text/html; charset=euc-jp" />' . "\n";
}
if ($do_hook) {
// NOTE! plugins here MUST assign output to template
* @param boolean $alt Whether or not this is an alternate
* stylesheet (optional; default TRUE).
* @param string $mtype The target media display type (optional; default "screen").
- * @param string $xhtml_end The XHTML-compliant close tag syntax to
- * use (optional; default "/")
*
* @return string The full text of the stylesheet link.
*
*/
-function create_css_link($uri, $name='', $alt=TRUE, $mtype='screen', $xhtml_end='/') {
+function create_css_link($uri, $name='', $alt=TRUE, $mtype='screen') {
// FIXME: Add closing / to link and meta elements only after
// switching to xhtml 1.0 Transitional.
// It is not compatible with html 4.01 Transitional
-$xhtml_end='';
-
if (empty($uri)) {
return '';
}
$rel = 'rel="'.( $alt ? 'alternate ' : '' ).'stylesheet" ';
}
- return '<link '.$media.$title.$rel.'type="text/css" '.$href." $xhtml_end>\n";
+ return '<link '.$media.$title.$rel.'type="text/css" '.$href." />\n";
}
function humanReadableSize ($size) {
return show_readable_size($size);
}
-
-
// upload form
echo html_tag('tr')
. html_tag('td',_("Upload Media File:"),'right','','style="white-space: nowrap;"')
- . html_tag('td','<input type="file" size="40" name="media_file">')
+ . html_tag('td','<input type="file" size="40" name="media_file" />')
. "</tr>\n";
// display currently uploaded file information
echo html_tag('tr')
$str = '';
$str .= '<tr' . $bgcolor . ">\n";
$str .= ' <td style="white-space: nowrap;text-align:right;">' . $title . ' </td>' . "\n";
- $str .= ' <td> <input type="text" name="' . $name . '" size="50" value="'. htmlspecialchars($data) . '"> </td>' . "\n";
+ $str .= ' <td> <input type="text" name="' . $name . '" size="50" value="'. htmlspecialchars($data) . '" /> </td>' . "\n";
$str .= '</tr>';
return $str;
</tr>
<?php
} else {
- echo '<input type="hidden" name="backend" value="1">'."\n";
+ echo '<input type="hidden" name="backend" value="1" />'."\n";
}
}
?>
</td>
</tr>
</table>
-</div>
\ No newline at end of file
+</div>
<?php
} else {
?>
- <input type="checkbox" name=<?php echo '"send_to_search[T'.$index.']"'; ?> value=<?php echo '"'.$contact['FullAddress'].'"'; ?> id=<?php echo '"send_to_search_T'.$index.'_"'; ?>><label for=<?php echo '"send_to_search_T'.$index.'_"'; ?>><?php echo _("To"); ?></label>
- <input type="checkbox" name=<?php echo '"send_to_search[C'.$index.']"'; ?> value=<?php echo '"'.$contact['FullAddress'].'"'; ?> id=<?php echo '"send_to_search_C'.$index.'_"'; ?>><label for=<?php echo '"send_to_search_C'.$index.'_"'; ?>><?php echo _("Cc"); ?></label>
- <input type="checkbox" name=<?php echo '"send_to_search[B'.$index.']"'; ?> value=<?php echo '"'.$contact['FullAddress'].'"'; ?> id=<?php echo '"send_to_search_B'.$index.'_"'; ?>><label for=<?php echo '"send_to_search_B'.$index.'_"'; ?>><?php echo _("Bcc"); ?></label>
+ <input type="checkbox" name=<?php echo '"send_to_search[T'.$index.']"'; ?> value=<?php echo '"'.$contact['FullAddress'].'"'; ?> id=<?php echo '"send_to_search_T'.$index.'_"'; ?> /><label for=<?php echo '"send_to_search_T'.$index.'_"'; ?>><?php echo _("To"); ?></label>
+ <input type="checkbox" name=<?php echo '"send_to_search[C'.$index.']"'; ?> value=<?php echo '"'.$contact['FullAddress'].'"'; ?> id=<?php echo '"send_to_search_C'.$index.'_"'; ?> /><label for=<?php echo '"send_to_search_C'.$index.'_"'; ?>><?php echo _("Cc"); ?></label>
+ <input type="checkbox" name=<?php echo '"send_to_search[B'.$index.']"'; ?> value=<?php echo '"'.$contact['FullAddress'].'"'; ?> id=<?php echo '"send_to_search_B'.$index.'_"'; ?> /><label for=<?php echo '"send_to_search_B'.$index.'_"'; ?>><?php echo _("Bcc"); ?></label>
<?php
}
?>
echo '<input type="submit" name="addr_search_cancel" value="'. _("Cancel") .'" />'."\n";
}
?>
-</div>
\ No newline at end of file
+</div>
<?php
} else {
?>
- <input type="hidden" name="backend" value="-1">
+ <input type="hidden" name="backend" value="-1" />
<?php
}
?>
</td>
</tr>
</table>
-</div>
\ No newline at end of file
+</div>
<?php echo _("New") .' '. _("Attachment");?>:
</td>
<td class="fieldValue">
- <input type="file" name="attachfile" size="48">
+ <input type="file" name="attachfile" size="48" />
<input type="submit" name="attach" value="<?php echo _("Attach"); ?>" />
if ( !empty($rendel_folder_list) ) {
?>
<form method="post" action="folders.php" name="rf" id="rf">
- <input type="hidden" name="smaction" value="rename">
+ <input type="hidden" name="smaction" value="rename" />
<select name="old_name">
<option value="">[ <?php echo _("Select a folder") ?> ]</option>
<?php echo $rendel_folder_list ?>
if ( !empty($rendel_folder_list) ) {
?>
<form method="post" action="folders.php" name="df" id="df">
- <input type="hidden" name="smaction" value="delete">
+ <input type="hidden" name="smaction" value="delete" />
<select name="folder_name">
<option value="">[ <?php echo _("Select a folder") ?> ]</option>
<?php echo $rendel_folder_list ?>
if ($no_list_for_subscribe) {
?>
<form method="post" action="folders.php" name="sf" id="sf">
- <input type="hidden" name="smaction" value="subscribe">
+ <input type="hidden" name="smaction" value="subscribe" />
<input type="text" name="folder_names[]" size="25" />
<input type="submit" value="<?php echo _("Subscribe") ?>" />
</form>
<td>
<?php echo sprintf(_("Are you sure you want to delete %s?"), $visible_folder_name); ?>
<br /><br />
- <input type="hidden" name="smaction" value="delete">
+ <input type="hidden" name="smaction" value="delete" />
<input type="hidden" name="folder_name" value="<?php echo $folder_name ?>" />
<input type="submit" name="confirmed" value="<?php echo _("Yes") ?>" />
<input type="submit" name="cancelbutton" value="<?php echo _("No") ?>" />
}
break;
case 'hidden':
- echo '<input type="hidden" name="'.$widget_name.'" value="'. $widget_attrs['value']."\">\n";
+ echo '<input type="hidden" name="'.$widget_name.'" value="'. $widget_attrs['value']."\" />\n";
break;
default: break;
}
<tr>
<td>
<form action=<?php echo '"'.$addField_action.'"'; ?> method="GET">
- <input type="hidden" name="method" value="add">
+ <input type="hidden" name="method" value="add" />
<select name="num">
<?php
foreach ($not_used as $field_id=>$name) {
</td>
</tr>
</table>
-</div>
\ No newline at end of file
+</div>
if ($frames) {
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<?php
} else {
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
}
if (empty($lang)) {
<?php
if ($forward_as_attachment_enabled) {
?>
- <input type="checkbox" name="smaction_attache" id="smaction_attache">
+ <input type="checkbox" name="smaction_attache" id="smaction_attache" />
<label for="smaction_attache"><?php echo _("As Attachment"); ?></label>
<?php
}
<?php echo $delete_form_extra; ?>
<small>
<input type="submit" name="delete" value="<?php echo _("Delete"); ?>" />
- <input type="checkbox" name="bypass_trash" id="bypass_trash"><label for="bypass_trash"><?php echo _("Bypass Trash"); ?></label>
+ <input type="checkbox" name="bypass_trash" id="bypass_trash" /><label for="bypass_trash"><?php echo _("Bypass Trash"); ?></label>
</small>
</form>
<?php
<?php
if ($forward_as_attachment_enabled) {
?>
- <input type="checkbox" name="smaction_attache" id="smaction_attache">
+ <input type="checkbox" name="smaction_attache" id="smaction_attache" />
<label for="smaction_attache"><?php echo _("As Attachment"); ?></label>
<?php
}
echo ' />'; ?>
- <input type="checkbox" name="bypass_trash" id="bypass_trash"><label for="bypass_trash"><?php echo _("Bypass Trash"); ?></label>
+ <input type="checkbox" name="bypass_trash" id="bypass_trash" /><label for="bypass_trash"><?php echo _("Bypass Trash"); ?></label>
</small>
</form>
<?php