Ticket #1179: xhtml_warn_fixes.patch

File xhtml_warn_fixes.patch, 8.9 KB (added by guest, 12 years ago)

Various XHTML fixes to warnings generated by eclipse.

  • Users/davistv/Documents/workspace/xinha/plugins/ExtendedFileManager/images.php

     
    8282                foreach($list[0] as $path => $dir) 
    8383                { ?> 
    8484                        <tr> 
    85                         <td><span width="20px"><img src="<?php print $IMConfig['base_url'];?>icons/folder_small.gif" alt="" /></span> 
     85                        <td><span style="width:20px;"><img src="<?php print $IMConfig['base_url'];?>icons/folder_small.gif" alt="" /></span> 
    8686                                <a href="<?php print $backend_url_enc; ?>__function=images&amp;mode=<?php echo $insertMode;?>&amp;dir=<?php echo rawurlencode($path); ?>&amp;viewtype=<?php echo $afruViewType; ?>" onclick="updateDir('<?php echo $path; ?>')" title="<?php echo $dir['entry']; ?>"> 
    8787                        <?php 
    8888                        if(strlen($dir['entry'])>$maxNameLength) echo substr($dir['entry'],0,$maxNameLength)."..."; else echo $dir['entry']; 
     
    8787                        <?php 
    8888                        if(strlen($dir['entry'])>$maxNameLength) echo substr($dir['entry'],0,$maxNameLength)."..."; else echo $dir['entry']; 
    8989                        ?> 
    90                         </a></th> 
     90                        </a></td> 
    9191                        <td colspan="2" >Folder</td> 
    9292 
    9393                        <td ><?php echo date($IMConfig['date_format'],$dir['stat']['mtime']); ?></td> 
     
    113113                { 
    114114                        ?> 
    115115                <tr> 
    116                           <td><span width="20px"><img src="<?php print $IMConfig['base_url']; if(is_file('icons/'.$file['ext'].'_small.gif')) echo "icons/".$file['ext']."_small.gif"; else echo $IMConfig['default_listicon']; ?>" alt="" /></span> 
     116                          <td><span style="width:20px;"><img src="<?php print $IMConfig['base_url']; if(is_file('icons/'.$file['ext'].'_small.gif')) echo "icons/".$file['ext']."_small.gif"; else echo $IMConfig['default_listicon']; ?>" alt="" /></span> 
    117117                                        <a href="#" class="thumb" style="cursor: pointer;" ondblclick="this.onclick();window.top.onOK();" onclick="selectImage('<?php echo $file['relative'];?>', '<?php echo preg_replace('#\..{3,4}$#', '', $entry); ?>', <?php echo $file['image'][0];?>, <?php echo $file['image'][1]; ?>);return false;" title="<?php echo $entry; ?> - <?php echo Files::formatSize($file['stat']['size']); ?>" <?php if ($insertMode == 'image') { ?> onmouseover="showPreview('<?php echo $file['relative'];?>')" onmouseout="showPreview(window.parent.document.getElementById('f_url').value)" <?php } ?> > 
    118118                                <?php 
    119119                                if(strlen($entry)>$maxNameLength) echo substr($entry,0,$maxNameLength)."..."; else echo $entry; 
  • Users/davistv/Documents/workspace/xinha/plugins/ImageManager/editor.php

     
    6868        <div id="tools_rotate" style="display:none;"> 
    6969                <div id="tool_inputs"> 
    7070                        <select id="flip" name="flip" style="margin-left: 10px; vertical-align: middle;"> 
    71               <option selected>Flip Image</option> 
     71              <option selected="selected">Flip Image</option> 
    7272              <option>-----------------</option> 
    7373              <option value="hoz">Flip Horizontal</option> 
    7474              <option value="ver">Flip Vertical</option> 
     
    7474              <option value="ver">Flip Vertical</option> 
    7575         </select> 
    7676                        <select name="rotate" onchange="rotatePreset(this)" style="margin-left: 20px; vertical-align: middle;"> 
    77               <option selected>Rotate Image</option> 
     77              <option selected="selected">Rotate Image</option> 
    7878              <option>-----------------</option> 
    7979 
    8080              <option value="180">Rotate 180 &deg;</option> 
     
    105105                <div id="tool_inputs"> 
    106106                        <label for="save_filename">Filename:</label><input type="text" id="save_filename" value="<?php echo $editor->getDefaultSaveFile();?>"/> 
    107107                        <select name="format" id="save_format" style="margin-left: 10px; vertical-align: middle;" onchange="updateFormat(this)"> 
    108             <option value="" selected>Image Format</option> 
     108            <option value="" selected="selected">Image Format</option> 
    109109            <option value="">---------------------</option> 
    110110            <option value="jpeg,85">JPEG High</option> 
    111111            <option value="jpeg,60">JPEG Medium</option> 
     
    120120                                <tr> 
    121121                                <td> 
    122122                                        <div id="slidercasing">  
    123                                 <div id="slidertrack" style="width:100px"><img src="<?php print $IMConfig['base_url'];?>img/spacer.gif" width="1" height="1" border="0" alt="track"></div> 
    124             <div id="sliderbar" style="left:85px" onmousedown="captureStart();"><img src="<?php print $IMConfig['base_url'];?>img/spacer.gif" width="1" height="1" border="0" alt="track"></div> 
     123                                <div id="slidertrack" style="width:100px"><img src="<?php print $IMConfig['base_url'];?>img/spacer.gif" width="1" height="1" border="0" alt="track" /></div> 
     124            <div id="sliderbar" style="left:85px" onmousedown="captureStart();"><img src="<?php print $IMConfig['base_url'];?>img/spacer.gif" width="1" height="1" border="0" alt="track" /></div> 
    125125                        </div>   
    126126                                </td> 
    127127                                </tr> 
  • Users/davistv/Documents/workspace/xinha/plugins/ImageManager/images.php

     
    8282            <tr> 
    8383              <th><a href="#" class="thumb" style="cursor: pointer;" onclick="selectImage('<?php echo $file['relative'];?>', '<?php echo $entry; ?>', <?php echo $file['image'][0];?>, <?php echo $file['image'][1]; ?>);return false;" title="<?php echo $entry; ?> - <?php echo Files::formatSize($file['stat']['size']); ?>" onmouseover="showPreview('<?php echo $file['relative'];?>')" onmouseout="showPreview(window.parent.document.getElementById('f_url').value)" ><?php echo $entry ?></a></th> 
    8484              <td><?php echo Files::formatSize($file['stat']['size']); ?></td> 
    85               <td><?php if($file['image']){ echo $file['image'][0].'x'.$file['image'][1]; } ?> 
     85              <td><?php if($file['image']){ echo $file['image'][0].'x'.$file['image'][1]; } ?></td> 
    8686              <td class="actions"> 
    8787                <a href="<?php print $IMConfig['backend_url']; ?>__function=images&dir=<?php echo $relative; ?>&amp;delf=<?php echo rawurlencode($file['relative']);?>" title="Trash" onclick="return confirmDeleteFile('<?php echo $entry; ?>');"><img src="<?php print $IMConfig['base_url'];?>img/edit_trash.gif" height="15" width="15" alt="Trash" border="0"  /></a> 
    8888         
  • Users/davistv/Documents/workspace/xinha/plugins/ImageManager/manager.php

     
    5656 
    5757<form action="<?php print $IMConfig['backend_url'] ?>" id="uploadForm" method="post" enctype="multipart/form-data"> 
    5858 
    59 <input type="hidden" name="__plugin" value="ImageManager"> 
    60 <input type="hidden" name="__function" value="images"> 
     59<input type="hidden" name="__plugin" value="ImageManager" /> 
     60<input type="hidden" name="__function" value="images" /> 
    6161 
    6262<fieldset> 
    6363  <legend>Image Manager</legend> 
     
    107107 
    108108  </table> 
    109109 
    110   <div id="messages" style="display: none;"><span id="message"></span><img SRC="<?php print $IMConfig['base_url']; ?>img/dots.gif" width="22" height="12" alt="..." /></div> 
     110  <div id="messages" style="display: none;"><span id="message"></span><img src="<?php print $IMConfig['base_url']; ?>img/dots.gif" width="22" height="12" alt="..." /></div> 
    111111 
    112112  <iframe src="<?php print $IMConfig['backend_url']; ?>__function=images" name="imgManager" id="imgManager" class="imageFrame" scrolling="auto" title="Image Selection" frameborder="0"></iframe> 
    113113 
  • Users/davistv/Documents/workspace/xinha/plugins/InsertPicture/InsertPicture.php

     
    198198      </form> 
    199199 
    200200    </td> 
    201     <td valign="center" width="200" height="230"> 
     201    <td valign="middle" width="200" height="230"> 
    202202    <span>Image Preview:</span> 
    203203    <a href="#" onClick="javascript:openFile();"title=" Open file in new window"><img src="img/btn_open.gif"  width="18" height="18" border="0" title="Open file in new window" /></a><br /> 
    204204    <iframe name="ipreview" id="ipreview" frameborder="0" style="border : 1px solid gray;" height="200" width="200" src=""></iframe>