Files
EasySoft-ZenTaoPMS/module/file/view/buildform.html.php
T
wangchunsheng 78873b15e7 * adjust the create form's style.
* adjust row height of table.
 * adjust fieldset's style.
2012-06-30 07:10:32 +00:00

23 lines
914 B
PHP

<div id='fileform'>
<?php for($i = 0; $i < $fileCount; $i ++):?>
<span class='icon'>
<span class='icon-file'></span>
<?php echo $lang->file->common . ($i + 1) . " "?>
</span>
<input type='file' name='files[]' id="file<?php echo $i;?>" tabindex='-1' />
<label id='label<?php echo $i;?>' tabindex='-1'><?php echo $lang->file->label;?></label>
<input type='text' name='labels[]' class='text-3' tabindex='-1' /><br />
<?php endfor;?>
</div>
<script language='javascript'>
function setFileFormWidth(percent)
{
totalWidth = Math.round($('#fileform').parent().width() * percent);
titleWidth = totalWidth - $('#file0').width() - $('#label0').width() - $('.icon').width();
if($.browser.mozilla) titleWidth -= 8;
if(!$.browser.mozilla) titleWidth -= 12;
$('#fileform .text-3').css('width', titleWidth + 'px');
};
$(function(){setFileFormWidth(<?php echo $percent;?>)});
</script>