Interface Fix: transforms description field into textarea and authorize anchors with brackets into descriptions

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@206 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
mensonge 2008-12-18 16:25:17 +00:00
parent 1917aeaab2
commit e0a61f1fc5
2 changed files with 7 additions and 4 deletions

View file

@ -190,9 +190,12 @@ if(isset($currenttag) && $currenttag!= '') {
echo '<div class="link"><a href="'. $address .'"'. $rel .' class="taggedlink">'. filter($row['bTitle']) ."</a></div>\n"; echo '<div class="link"><a href="'. $address .'"'. $rel .' class="taggedlink">'. filter($row['bTitle']) ."</a></div>\n";
if ($row['bDescription'] == '') { if ($row['bDescription'] == '') {
$row['bDescription'] = '-'; $bkDescription = '-';
} else {
$bkDescription = preg_replace('|\[\/.*?\]|', '', filter($row['bDescription'])); // remove final anchor
$bkDescription = preg_replace('|\[(.*?)\]|', ' <br/><b>$1 : </b>', $bkDescription); // remove final anchor
} }
echo '<div class="description">'. filter($row['bDescription']) ."</div>\n"; echo '<div class="description">'. $bkDescription ."</div>\n";
if(!isset($hash)) { if(!isset($hash)) {
echo '<div class="address">'.shortenString($address).'</div>'; echo '<div class="address">'.shortenString($address).'</div>';
} }

View file

@ -41,8 +41,8 @@ $this->includeTemplate("dojo.inc");
</tr> </tr>
<tr> <tr>
<th align="left"><?php echo T_('Description'); ?></th> <th align="left"><?php echo T_('Description'); ?></th>
<td><input type="text" name="description" size="75" maxlength="255" value="<?php echo filter($row['bDescription'], 'xml'); ?>" /></td> <td><textarea name="description" rows="5" cols="63" ><?php echo filter($row['bDescription'], 'xml'); ?></textarea></td>
<td></td> <td>&larr; <?php echo T_('You can use anchors to delimite attributes. for example: [publisher]blah[/publisher] '); ?></td>
</tr> </tr>
<tr> <tr>
<th align="left"><?php echo T_('Tags'); ?></th> <th align="left"><?php echo T_('Tags'); ?></th>