init
This commit is contained in:
13
modules/EcmProducts/getDescWithEnter.php
Normal file
13
modules/EcmProducts/getDescWithEnter.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
$w=$GLOBALS['db']->query("select long_description,ecmproduct_id from ecmproduct_language where language='en' and deleted='0'");
|
||||
while($r=$GLOBALS['db']->fetchByAssoc($w)){
|
||||
$rr=$GLOBALS['db']->fetchByAssoc($GLOBALS['db']->query("select id,code,name,product_active,status from ecmproducts where id='".$r['ecmproduct_id']."'"));
|
||||
$s=str_replace("<","<",$r['long_description']);
|
||||
$s=str_replace(">",">",$s);
|
||||
$p=explode("<p>",$s);
|
||||
$p=explode("</p>",$p[1]);
|
||||
$p=$p[0];
|
||||
if(eregi("
|
||||
",$p) && $rr['product_active'] && $rr['status']!="end_of_line")echo '<a href="index.php?module=EcmProducts&action=EditView&record='.$rr['id'].'">'.$rr['code']." ".$rr['name']."</a><br>";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user