Changeset 1654 for sandbox/filemanager/inc/class.uifilemanager.inc.php
- Timestamp:
- 11/17/09 09:02:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/class.uifilemanager.inc.php
r1648 r1654 61 61 var $newfile_x; 62 62 var $createfile_var; 63 var $delete_x;64 var $renamefiles;65 var $rename_x;66 63 var $move_to_x; 67 64 // var $copy_to; … … 86 83 var $show_upload_boxes; 87 84 88 var $debug = false;89 85 var $now; 90 86 … … 123 119 $to_decode = array 124 120 ( 125 /*126 Decode127 'var' when 'avar' == 'value'128 or129 'var' when 'var' is set130 */131 121 'op' => array('op' => ''), 132 122 'path' => array('path' => ''), 123 'filename' => array('filename' => ''), 133 124 'file' => array('file' => ''), 134 125 'sortby' => array('sortby' => ''), … … 333 324 ) 334 325 )); 335 $this->file man[0]= $filename;326 $this->filename = $filename; 336 327 $this->edit(); 337 328 … … 355 346 echo "<script src='".$GLOBALS['phpgw_info']['flags']['currentapp']."/js/common_functions.js'></script>"; 356 347 echo "<script src='".$GLOBALS['phpgw_info']['flags']['currentapp']."/js/connector.js'></script>"; 348 echo "<script src='".$GLOBALS['phpgw_info']['flags']['currentapp']."/js/draw_api.js'></script>"; 357 349 include('load_lang.php'); 358 350 … … 524 516 } 525 517 526 if($this->debug)527 {528 $this->debug_filemanager();529 }530 531 518 # main action switch 532 519 // FIXME this will become a switch … … 555 542 $this->moveTo(); 556 543 } 557 elseif($this->renamefiles)558 {559 $this->rename();560 }561 544 elseif($this->edit_cancel_x) 562 545 { … … 567 550 { 568 551 $this->edit(); 569 }570 elseif($this->delete_x)571 {572 $this->delete();573 552 } 574 553 else … … 607 586 $vars[usedSpace]='<input type="hidden" id="usedSpace" value="'.$usedSpace.'">'; 608 587 $vars[quotaSize]='<input type="hidden" id="quotaSize" value="'.($quota*1024*1024).'">'; 609 $vars[javascript]='<script src="filemanager/js/draw_api.js"></script> 588 $vars[path]='<input type="hidden" id="currentPath" value="'.$this->path.'">'; 589 $vars[css]='<script>initDrawApi();</script> 610 590 <link rel="stylesheet" type="text/css" href="filemanager/templates/default/main.css">'; 611 591 $vars[toolbar0]=$this->toolbar('location'); … … 692 672 { 693 673 $files = $this->files_array[$i]; 694 695 if($this->rename_x) 696 { 697 unset($this_selected); 698 unset($renamethis); 699 700 for($j = 0; $j != $this->numoffiles; $j++) 701 { 702 if($this->fileman[$j] == $files['name']) 703 { 704 $this_selected = 1; 705 break; 706 } 707 } 708 709 if($this->rename_x && $this_selected) 710 { 711 $renamethis = 1; 712 } 713 } 674 714 675 715 676 if(!$this->prefs['dotfiles'] && ereg("^\.", $files['name'])) … … 719 680 720 681 # Checkboxes 721 if(!$this->rename_x && $this->path != $this->bo->fakebase && $this->path != '/') 722 { 723 $cbox='<input type="checkbox" class="checkbox" name="fileman['.$i.']" value="'.$files['name'].'">'; 724 $this->t->set_var('actions',$cbox); 725 } 726 elseif($renamethis) 727 { 728 $cbox=$this->html_form_input('hidden', 'fileman[' . base64_encode($files['name']) . ']', $files['name'], NULL, NULL, 'checked'); 682 if($this->path != $this->bo->fakebase && $this->path != '/') 683 { 684 $cbox='<input type="checkbox" name="fileman" value="'.$files['name'].'">'; 729 685 $this->t->set_var('actions',$cbox); 730 686 } … … 761 717 762 718 # File name and icon 763 if($renamethis) 764 { 765 $col_data=$this->mime_icon($files['mime_type']); 766 $col_data.='<input type="text" maxlength="255" name="renamefiles[' . $files['name'] . ']" value="'.$files['name'].'">'; 719 if($files['mime_type'] == 'Directory') 720 { 721 $link=$this->encode_href('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->path.$this->dispsep.$files['name']); 722 723 $icon=$this->mime_icon($files['mime_type']); 724 725 $col_data='<a href="'.$link.'">'.$icon.'</a> '; 726 $col_data.='<a href="'.$link.'">'.$files['name'].'</a> '; 767 727 } 768 728 else 769 729 { 770 if($files['mime_type'] == 'Directory') 730 731 if($this->prefs['viewonserver'] && isset($this->bo->filesdir) && !$files['link_directory']) 771 732 { 772 $link=$this->encode_href('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->path.$this->dispsep.$files['name']); 773 774 $icon=$this->mime_icon($files['mime_type']); 775 776 $col_data='<a href="'.$link.'">'.$icon.'</a> '; 777 $col_data.='<a href="'.$link.'">'.$files['name'].'</a> '; 733 #FIXME 734 $clickview = $this->filesdir.$pwd.'/'.$files['name']; 735 778 736 } 779 737 else 780 738 { 781 782 if($this->prefs['viewonserver'] && isset($this->bo->filesdir) && !$files['link_directory']) 783 { 784 #FIXME 785 $clickview = $this->filesdir.$pwd.'/'.$files['name']; 786 787 if($phpwh_debug) 788 { 789 echo 'Setting clickview = '.$clickview.'<br>'."\n"; 790 $this->html_link($clickview,'', '',$files['name'], 0, 1, 0, ''); 791 } 792 } 793 else 794 { 795 $icon=$this->mime_icon($files['mime_type']); 796 $link=$this->encode_href('/index.php','menuaction=filemanager.uifilemanager.view','file='.$files['name'].'&path='.$this->path); 797 798 $col_data='<a href="'.$link.'" target="'.$this->target.'">'.$icon.'</a> <a href="'.$link.'" target="'.$this->target.'">'.$files['name'].'</a>'; 799 } 739 $icon=$this->mime_icon($files['mime_type']); 740 $link=$this->encode_href('/index.php','menuaction=filemanager.uifilemanager.view','file='.$files['name'].'&path='.$this->path); 741 742 $col_data='<a href="'.$link.'" target="'.$this->target.'">'.$icon.'</a> '. 743 '<a id="name_'.$files['name'].'" href="'.$link.'" target="'.$this->target.'">'.$files['name'].'</a>'; 800 744 } 801 745 } 746 802 747 803 748 $this->t->set_var('col_data',$col_data); … … 923 868 $this->t->pparse('out','row'); 924 869 } 925 926 // when renaming render extra sumbmit button927 if($this->rename_x)928 {929 $col_data='<br/><input type="submit" name="save_changes" value="'.lang('Save changes').'">';930 $this->t->set_var('col_data',$col_data);931 $this->t->parse('columns','column');932 $this->t->set_var('row_tr_color','');933 $this->t->parse('rows','row');934 $this->t->pparse('out','row');935 }936 870 } 937 871 … … 1036 970 )); 1037 971 1038 if($phpwh_debug)1039 {1040 echo '# of files found in "'.$this->path.'" : '.count($ls_array).'<br>'."\n";1041 }1042 1043 972 while(list($num, $file_array) = each($ls_array)) 1044 973 { 1045 974 $this->numoffiles++; 1046 975 $this->files_array[] = $file_array; 1047 if($phpwh_debug)1048 {1049 echo 'Filename: '.$file_array['name'].'<br>'."\n";1050 }1051 976 } 1052 977 } … … 1076 1001 { 1077 1002 $link=$this->encode_href('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->lesspath); 1078 $toolbar.=$this-> buttonImage($link,'up',lang('go up'));1003 $toolbar.=$this->linkButton($link,'up',lang('go up')); 1079 1004 } 1080 1005 … … 1083 1008 { 1084 1009 $link=$this->encode_href('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->bo->homedir); 1085 $toolbar.=$this-> buttonImage($link,'home',lang('go home'));1010 $toolbar.=$this->linkButton($link,'home',lang('go home')); 1086 1011 } 1087 1012 1088 1013 // reload button with this url 1089 1014 $link=$this->encode_href('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->path); 1090 $toolbar.=$this-> buttonImage($link,'reload',lang('reload'));1015 $toolbar.=$this->linkButton($link,'reload',lang('reload')); 1091 1016 1092 1017 $toolbar.='<td>'.lang('Location').': '; … … 1118 1043 if($this->path != '/' && $this->path != $this->bo->fakebase) 1119 1044 { 1120 //$toolbar.='<td><img alt="spacer" src="'.$GLOBALS['phpgw']->common->image('phpgwapi','buttonseparator').'" height="27" width="8"></td>';1121 //$toolbar.='<td><img alt="spacer" src="'.$GLOBALS['phpgw']->common->image('filemanager','spacer').'" height="27" width="1"></td>';1122 1045 // create dir and file button 1123 1046 if($this->can_add) 1124 1047 { 1125 //$toolbar3.='<td><img alt="spacer" src="'.$GLOBALS['phpgw']->common->image('phpgwapi','buttonseparator').'" height="27" width="8"></td>';1126 //$toolbar3.='<td><img alt="spacer" src="'.$GLOBALS['phpgw']->common->image('filemanager','spacer').'" height="27" width="1"></td>';1127 1128 1048 $toolbar.='<td><input type="hidden" id="newfile_or_dir" name="newfile_or_dir" value="" /></td>'; 1129 1049 //TODO : create folder with problems … … 1132 1052 } 1133 1053 1134 if( !$this->rename_x &&$this->can_edit)1054 if($this->can_edit) 1135 1055 { 1136 1056 // edit text file button … … 1143 1063 } 1144 1064 1145 if( !$this->rename_x &&$this->can_delete)1065 if($this->can_delete) 1146 1066 { 1147 1067 $toolbar.=$this->inputImage('delete','delete',lang('Delete')); 1148 1068 } 1149 1069 1150 /*if(!$this->rename_x && $this->can_edit && 1151 $_SESSION['phpgw_info']['user']['preferences']['filemanager']['comment'] == 1) 1152 { 1153 $toolbar.=$this->inputImage('edit_comments','edit_comments',lang('Edit comments')); 1154 }*/ 1155 1156 } 1157 1158 // $toolbar.='</tr></table>'; 1159 if(!$this->rename_x) 1160 { 1070 } 1071 1161 1072 // copy and move buttons 1162 1073 if($this->path != '/' && $this->path != $this->bo->fakebase) … … 1179 1090 <tr>'.$toolbar3;*/ 1180 1091 } 1181 }1182 1092 $toolbar.='</tr></table>'; 1183 1093 … … 1312 1222 } 1313 1223 } 1314 # Handle Renaming Files and Directories1315 function rename()1316 {1317 while(list($from, $to) = each($this->renamefiles))1318 {1319 if($badchar = $this->bo->bad_chars($to, True, True))1320 {1321 $this->messages[]=lang('Error:').$this->bo->html_encode(lang('File names cannot contain "%1"', $badchar), 1);1322 continue;1323 }1324 1325 if(ereg("/", $to) || ereg("\\\\", $to))1326 {1327 $this->messages[]=lang('Error:').lang("File names cannot contain \\ or /");1328 }1329 elseif($this->vfs_functions->verifyLock($from,RELATIVE_CURRENT) && $this->bo->vfs->mv(array(1330 'from' => $this->disppath.'/'.$from,1331 'to' => $this->disppath.'/'.$to,1332 'relatives' => array(RELATIVE_NONE,RELATIVE_NONE)1333 )))1334 {1335 $this->messages[]=lang('Renamed %1 to %2', $from, $to);1336 }1337 else1338 {1339 $this->messages[]= lang('Error:').lang('Could not rename %1 to %2', $from, $to);1340 }1341 }1342 $this->readFilesInfo();1343 $this->filelisting();1344 }1345 1346 1224 # Handle Moving Files and Directories 1347 1225 function moveTo() … … 1470 1348 } 1471 1349 } 1472 function delete()1473 {1474 if( is_array($this->fileman) && count($this->fileman) >= 1)1475 {1476 foreach($this->fileman as $filename)1477 {1478 if($this->vfs_functions->verifyLock($filename,RELATIVE_ALL) && $this->bo->vfs->delete(array('string' => $filename)))1479 {1480 $this->messages[]= lang('Deleted %1', $this->disppath.'/'.$filename).'<br/>';1481 }1482 else1483 {1484 $this->messages[]=lang('Error:').lang('Could not delete %1', $this->disppath.'/'.$filename);1485 }1486 }1487 }1488 else1489 {1490 // make this a javascript func for quicker respons1491 $this->messages[]=lang('Error:').lang('Please select a file to delete.');1492 }1493 $this->readFilesInfo();1494 $this->filelisting();1495 }1496 1497 function debug_filemanager()1498 {1499 error_reporting(8);1500 1501 echo "<b>Filemanager debug:</b><br>1502 path: {$this->path}<br>1503 disppath: {$this->disppath}<br>1504 cwd: {$this->cwd}<br>1505 lesspath: {$this->lesspath}1506 <p>1507 <b>eGroupware debug:</b><br>1508 real getabsolutepath: " . $this->bo->vfs->getabsolutepath(array('target' => False, 'mask' => False, 'fake' => False)) . "<br>1509 fake getabsolutepath: " . $this->bo->vfs->getabsolutepath(array('target' => False)) . "<br>1510 appsession: " . $GLOBALS['phpgw']->session->appsession('vfs','') . "<br>1511 pwd: " . $this->bo->vfs->pwd() . "<br>";1512 1513 echo '<p></p>';1514 var_dump($this);1515 }1516 1517 1350 function showUploadboxes() 1518 1351 { … … 1546 1379 function createfile() 1547 1380 { 1548 $this-> createfile_var=$this->newfile_or_dir;1549 if($this-> createfile_var)1550 { 1551 if($badchar = $this->bo->bad_chars($this-> createfile_var, True, True))1381 $this->filename=$this->newfile_or_dir; 1382 if($this->filename) 1383 { 1384 if($badchar = $this->bo->bad_chars($this->filename, True, True)) 1552 1385 { 1553 1386 $this->messages[] = lang('Error:').lang('File names cannot contain "%1"',$badchar); … … 1557 1390 1558 1391 if($this->bo->vfs->file_exists(array( 1559 'string'=> $this-> createfile_var,1392 'string'=> $this->filename, 1560 1393 'relatives' => array(RELATIVE_ALL) 1561 1394 ))) 1562 1395 { 1563 $this->messages[]= lang('Error:').lang('File %1 already exists. Please edit it or delete it first.', $this-> createfile_var);1396 $this->messages[]= lang('Error:').lang('File %1 already exists. Please edit it or delete it first.', $this->filename); 1564 1397 $this->fileListing(); 1565 1398 } 1566 1399 1567 1400 if($this->bo->vfs->touch(array( 1568 'string' => $this-> createfile_var,1401 'string' => $this->filename, 1569 1402 'relatives' => array(RELATIVE_ALL) 1570 1403 ))) 1571 1404 { 1572 $this->fileman = array();1573 $this->fileman[0] = $this->createfile_var;1574 1405 $this->edit = 1; 1575 1406 $this->numoffiles++; … … 1578 1409 else 1579 1410 { 1580 $this->messages[]= lang('Error:').lang('File %1 could not be created.', $this-> createfile_var);1411 $this->messages[]= lang('Error:').lang('File %1 could not be created.', $this->filename); 1581 1412 $this->fileListing(); 1582 1413 } … … 1587 1418 function edit() 1588 1419 { 1589 $files = array_keys($this->fileman); 1590 $this->file = $this->fileman[$files[0]]; 1591 if($this->file) 1592 { 1593 if (! $this->vfs_functions->verifyLock($this->path.'/'.$this->file,RELATIVE_NONE)){ 1420 if($this->filename) 1421 { 1422 if (! $this->vfs_functions->verifyLock($this->path.'/'.$this->filename,RELATIVE_NONE)){ 1594 1423 echo $this->messages['0']; 1595 1424 $GLOBALS['phpgw']->redirect('/index.php'); … … 1598 1427 } 1599 1428 $ls_array = $this->bo->vfs->ls(array( 1600 'string' => $this->path.'/'.$this->file ,1429 'string' => $this->path.'/'.$this->filename, 1601 1430 'relatives' => array(RELATIVE_NONE), 1602 1431 'checksubdirs' => False, … … 1604 1433 )); 1605 1434 $this->bo->vfs->touch(array( 1606 'string'=> $this->path.'/'.$this->file ,1435 'string'=> $this->path.'/'.$this->filename, 1607 1436 'relatives' => array(RELATIVE_NONE) 1608 1437 )); … … 1677 1506 } 1678 1507 1679 # Now we display the edit boxes and forms 1680 for($j = 0; $j != $this->numoffiles; $j++) 1681 { 1682 # If we're in preview or save mode, we only show the file 1683 # being previewed or saved 1684 if($this->edit_file &&($this->fileman[$j] != $this->edit_file)) 1685 { 1686 continue; 1687 } 1688 1689 if($this->fileman[$j] && $this->bo->vfs->file_exists(array( 1690 'string' => $this->fileman[$j], 1691 'relatives' => array(RELATIVE_ALL) 1692 ))) 1693 { 1694 if($this->edit_file) 1695 { 1696 $content = stripslashes($this->edit_file_content); 1697 } 1698 else 1699 { 1700 $content = $this->bo->vfs->read(array('string' => $this->fileman[$j])); 1701 } 1702 1703 $vars[form_action]= $GLOBALS['phpgw']->link('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->path); 1704 $vars[edit_file]=$this->fileman[$j]; 1705 1706 # We need to include all of the fileman entries for each file's form, 1707 # so we loop through again 1708 for($i = 0; $i != $this->numoffiles; $i++) 1709 { 1710 if($this->fileman[$i]) $value='value="'.$this->fileman[$i].'"'; 1711 $vars[filemans_hidden]='<input type="hidden" name="fileman['.$i.']" '.$value.' />'; 1712 } 1713 1714 $vars[file_content]=$content; 1715 1716 $vars[buttonPreview]=$this->inputImage('edit_preview','edit_preview',lang('Preview %1', $this->bo->html_encode($this->fileman[$j], 1))); 1717 $vars[buttonSave]=$this->inputImage('edit_save','save',lang('Save %1', $this->bo->html_encode($this->fileman[$j], 1))); 1718 $vars[buttonDone]=$this->inputImage('edit_save_done','ok',lang('Save %1, and go back to file listing ', $this->bo->html_encode($this->fileman[$j], 1))); 1719 $vars[buttonCancel]=$this->inputImage('edit_cancel','cancel',lang('Cancel editing %1 without saving', $this->bo->html_encode($this->fileman[$j], 1))); 1720 1721 if ($mime_type == 'text/html'){ 1722 $vars[fck_edit] = '<script type="text/javascript" src="filemanager/tp/ckeditor/ckeditor.js"></script> 1723 <textarea cols="80" id="edit_file_content" name="edit_file_content" rows="10">'.$content.'</textarea> 1724 <script type="text/javascript"> CKEDITOR.replace( \'edit_file_content\',{ 1725 removePlugins : \'elementspath\', 1726 skin : \'office2003\', 1727 toolbar : [["Source","Preview","-","Cut","Copy","Paste","-","Print", 1728 "Undo","Redo","-","Find","Replace","-","SelectAll" ], 1729 ["Table","HorizontalRule","Smiley","SpecialChar","PageBreak","-","Bold", 1730 "Italic","Underline","Strike","-","Subscript","Superscript", 1731 "NumberedList","BulletedList","-","Outdent","Indent","Blockquote", 1732 "JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock", 1733 "Link", "TextColor","BGColor","Maximize"], 1734 ["Styles","Format","Font","FontSize"]] 1735 });</script>'; 1736 1737 } 1738 1739 1740 $this->t->set_var($vars); 1741 $this->t->parse('rows','row'); 1742 $this->t->pparse('out','row'); 1743 1744 } 1745 } 1508 # If we're in preview or save mode, we only show the file 1509 # being previewed or saved 1510 if($this->edit_file &&($this->filename != $this->edit_file)) 1511 { 1512 continue; 1513 } 1514 1515 if($this->filename && $this->bo->vfs->file_exists(array( 1516 'string' => $this->filename, 1517 'relatives' => array(RELATIVE_ALL) 1518 ))) 1519 { 1520 if($this->edit_file) 1521 { 1522 $content = stripslashes($this->edit_file_content); 1523 } 1524 else 1525 { 1526 $content = $this->bo->vfs->read(array('string' => $this->filename)); 1527 } 1528 $vars[form_action]= $GLOBALS['phpgw']->link('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->path); 1529 $vars[edit_file]=$this->filename; 1530 # We need to include all of the fileman entries for each file's form, 1531 # so we loop through again 1532 for($i = 0; $i != $this->numoffiles; $i++) 1533 { 1534 if($this->filename) $value='value="'.$this->filename.'"'; 1535 $vars[filemans_hidden]='<input type="hidden" name="filename" '.$value.' />'; 1536 } 1537 $vars[file_content]=$content; 1538 1539 $vars[buttonPreview]=$this->inputButton('edit_preview','edit_preview',lang('Preview %1', $this->bo->html_encode($this->fileman[$j], 1))); 1540 $vars[buttonSave]=$this->inputButton('edit_save','save',lang('Save %1', $this->bo->html_encode($this->filename, 1))); 1541 $vars[buttonDone]=$this->inputButton('edit_save_done','ok',lang('Save %1, and go back to file listing ', $this->bo->html_encode($this->filename, 1))); 1542 $vars[buttonCancel]=$this->inputButton('edit_cancel','cancel',lang('Cancel editing %1 without saving', $this->bo->html_encode($this->filename, 1))); 1543 1544 if ($mime_type == 'text/html'){ 1545 $vars[fck_edit] = '<script type="text/javascript" src="filemanager/tp/ckeditor/ckeditor.js"></script> 1546 <textarea cols="80" id="edit_file_content" name="edit_file_content" rows="10">'.$content.'</textarea> 1547 <script type="text/javascript"> CKEDITOR.replace( \'edit_file_content\',{ 1548 removePlugins : \'elementspath\', 1549 skin : \'office2003\', 1550 toolbar : [["Source","Preview","-","Cut","Copy","Paste","-","Print", 1551 "Undo","Redo","-","Find","Replace","-","SelectAll" ], 1552 ["Table","HorizontalRule","Smiley","SpecialChar","PageBreak","-","Bold", 1553 "Italic","Underline","Strike","-","Subscript","Superscript", 1554 "NumberedList","BulletedList","-","Outdent","Indent","Blockquote", 1555 "JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock", 1556 "Link", "TextColor","BGColor","Maximize"], 1557 ["Styles","Format","Font","FontSize"]] 1558 });</script>'; 1559 1560 } 1561 1562 1563 $this->t->set_var($vars); 1564 $this->t->parse('rows','row'); 1565 $this->t->pparse('out','row'); 1566 1567 } 1568 1746 1569 } 1747 1570 … … 1971 1794 } 1972 1795 1973 function buttonImage($link,$img='',$description='')1796 function linkButton($link,$img='',$description='') 1974 1797 { 1975 1798 $image=$GLOBALS['phpgw']->common->image('filemanager','button_'.strtolower($img)); … … 1983 1806 } 1984 1807 1808 function inputButton($name,$img='',$description='') 1809 { 1810 $image=$GLOBALS['phpgw']->common->image('filemanager','button_'.strtolower($img)); 1811 1812 if($img) 1813 { 1814 return '<td class="" align="center" valign="middle" height="28" width="70"> 1815 <input title="'.$description.'" name="'.$name.'" type="image" alt="'.$name.'" src="'.$image.'" value="clicked" /><br><small>'.$description.'</small> 1816 </td>'; 1817 } 1818 } 1985 1819 function inputImage($name,$img='',$description='') 1986 1820 { … … 1990 1824 { 1991 1825 return '<td class="" align="center" valign="middle" height="28" width="70"> 1992 <i nput onClick="return formfmValidate(\''.$name.'\')" title="'.$description.'" name="'.$name.'" type="image" alt="'.$name.'" src="'.$image.'" value="clicked" /><br><small>'.$description.'</small>1826 <img onClick="toolbar_control(\''.$name.'\')" title="'.$description.'" name="'.$name.'" alt="'.$name.'" src="'.$image.'" /><br><small>'.$description.'</small> 1993 1827 </td>'; 1994 1828 } 1995 1829 } 1830 1831 1996 1832 1997 1833 function html_form_input($type = NULL, $name = NULL, $value = NULL, $maxlength = NULL, $size = NULL, $checked = NULL, $string = '', $return = 1)
Note: See TracChangeset
for help on using the changeset viewer.