J
|
Jane 11/26/2008 |
Hi, |
D
|
deepdown author 11/26/2008 |
Thank you so much for your help Jane but i can not get it to run <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=35492&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' /> function ProcessLargeText($strValue,$iquery="",$table="", $mode=MODELIST) { global $strTableName; $cNumberOfChars = GetNumberOfChars($table); if(substr($strValue,0,8)=="<a href=") return $strValue; if(substr($strValue,0,23)=="<img src=\"images/check") return $strValue; if($cNumberOfChars>0 && strlen($strValue)>$cNumberOfChars && (strlen($strValue)<200 || !strlen($iquery)) && $mode==MODE_LIST) { $ret = substr($strValue,0,$cNumberOfChars ); $ret=htmlspecialchars($ret); $ret.=" <a href=\"#\" onClick=\"java script: pwin = window.open('',null,'height=300,width=400,status=yes,resizable=yes,toolbar=no,menubar=no,location =no,left=150,top=200,scrollbars=yes'); "; $ind = 1; $ret.="pwin.document.write('" . htmlspecialchars(jsreplace(nl2br(substr($strValue,0, 801)))) ."');"; // $ret.="pwin.document.write('" . db_addslashes(str_replace("\r\n"," ",htmlspecialchars(substr($strValue,0, 801)))) ."');"; $ret.="pwin.document.write(' <hr size=1 noshade><a href=# onClick=\\'window.close();return false;\\'>"."Fenster schließen"."</a>');"; $ret.="return false;\">"."Mehr"." ...</a>"; } else if($cNumberOfChars>0 && strlen($strValue)>$cNumberOfChars && $mode==MODE_LIST) { $table = GetTableURL($table); $ret = substr($strValue,0,$cNumberOfChars ); $ret=htmlspecialchars($ret); $ret.=" <a href=# onClick=\"java script: pwin = window.open('',null,'height=300,width=400,status=yes,resizable=yes,toolbar=no,menubar=no,location =no,left=150,top=200,scrollbars=yes');"; $ret.=" pwin.location='".$table."_fulltext.php?".$iquery."'; return false;\">"."Mehr"." ...</a>"; } else if($cNumberOfChars>0 && strlen($strValue)>$cNumberOfChars && $mode==MODE_PRINT) { $ret = substr($strValue,0,$cNumberOfChars ); $ret=htmlspecialchars($ret); if(strlen($strValue)>$cNumberOfChars) $ret.=" ..."; } else $ret= htmlspecialchars($strValue); |
J
|
Jane 11/27/2008 |
Here is more easy way to change More link:
|
D
|
deepdown author 11/27/2008 |
Thx a lot Jane global $data; |
D
|
deepdown author 11/27/2008 |
Fixed <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=35518&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> global $data; $value=substr($value,0,200)."<a href='vacproperties_view.php?editid1=".$data["PropertyID"]."'target=_blank>More...</a>";
|