|
@@ -495,21 +495,28 @@ class Returns extends Start_Controller {
|
|
|
{
|
|
{
|
|
|
foreach ($returnsimg as $k=>$v)
|
|
foreach ($returnsimg as $k=>$v)
|
|
|
{
|
|
{
|
|
|
- if(strpos("http",$v)===false){
|
|
|
|
|
- $v = $this->show_url.$v;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
$lx = explode(".",$v);
|
|
$lx = explode(".",$v);
|
|
|
$lx = strtolower(end($lx));
|
|
$lx = strtolower(end($lx));
|
|
|
if($lx == "3gp" || $lx == "rmvb" || $lx == "flv" || $lx == "wmv" || $lx == "avi" || $lx == "mkv" || $lx == "wav" || $lx == "mp4")
|
|
if($lx == "3gp" || $lx == "rmvb" || $lx == "flv" || $lx == "wmv" || $lx == "avi" || $lx == "mkv" || $lx == "wav" || $lx == "mp4")
|
|
|
{
|
|
{
|
|
|
|
|
+ if(strpos("http",$v)===false){
|
|
|
|
|
+ $v = $this->show_url.$v;
|
|
|
|
|
+ }
|
|
|
$img .= '<span class="deldata"><video src="'.$v.'" controls="controls"></video>'."<em style='width:30px;height:30px;line-height:30px;text-align: center;display: inline-block;position: absolute;top: 0px;right: 20px;z-index: 10;background-color: #FFF;cursor: pointer;' title='点击删除'>X</em></span>";
|
|
$img .= '<span class="deldata"><video src="'.$v.'" controls="controls"></video>'."<em style='width:30px;height:30px;line-height:30px;text-align: center;display: inline-block;position: absolute;top: 0px;right: 20px;z-index: 10;background-color: #FFF;cursor: pointer;' title='点击删除'>X</em></span>";
|
|
|
}
|
|
}
|
|
|
else if($v != '')
|
|
else if($v != '')
|
|
|
{
|
|
{
|
|
|
- $url = str_replace(array('http://'.$_SERVER['HTTP_HOST'],'http://erp.hnwmzp.cn','https://erp.hnwmzp.cn','http://1.wepolicy.cn/','https://1.wepolicy.cn/','/img/thumb?src='),'',$v);
|
|
|
|
|
- $url = explode('&',$url);
|
|
|
|
|
- $url = $url[0];
|
|
|
|
|
- $img .= '<span class="deldata"><a href="'.$url.'" target="_blank">'."<img src='".site_url('img/thumb')."?src=".$url."&w=500&h=500' data-src='".$v."'></a>"."<em style='width:30px;height:30px;line-height:30px;text-align: center;display: inline-block;position: absolute;top: 0px;right: 20px;z-index: 10;background-color: #FFF;cursor: pointer;' title='点击删除'>X</em></span>";
|
|
|
|
|
|
|
+ if(strpos("http",$v)===false){
|
|
|
|
|
+ $v = $this->show_url.$v;
|
|
|
|
|
+ $img .= '<span class="deldata"><a href="'.$v.'" target="_blank">'."<img src='".$v."' data-src='".$v."'></a>"."<em style='width:30px;height:30px;line-height:30px;text-align: center;display: inline-block;position: absolute;top: 0px;right: 20px;z-index: 10;background-color: #FFF;cursor: pointer;' title='点击删除'>X</em></span>";
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $url = str_replace(array('http://'.$_SERVER['HTTP_HOST'],'http://erp.hnwmzp.cn','https://erp.hnwmzp.cn','http://1.wepolicy.cn/','https://1.wepolicy.cn/','/img/thumb?src='),'',$v);
|
|
|
|
|
+ $url = explode('&',$url);
|
|
|
|
|
+ $url = $url[0];
|
|
|
|
|
+ $img .= '<span class="deldata"><a href="'.$url.'" target="_blank">'."<img src='".site_url('img/thumb')."?src=".$url."&w=500&h=500' data-src='".$v."'></a>"."<em style='width:30px;height:30px;line-height:30px;text-align: center;display: inline-block;position: absolute;top: 0px;right: 20px;z-index: 10;background-color: #FFF;cursor: pointer;' title='点击删除'>X</em></span>";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|