Ejemplo n.º 1
0
function showmessage($msg, $url_forward = 'goback', $ms = 1250, $direct = 0)
{
    if ($direct && $url_forward && $url_forward != 'goback') {
        ob_clean();
        header("location:{$url_forward}");
        exit("<script>self.location='{$url_forward}';</script>");
    }
    include admin_tpl('showmessage');
    exit;
}
Ejemplo n.º 2
0
        ?>
</td>
				<td class="center"><?php 
        echo $vo['url'];
        ?>
</td>
				<td class="center"><?php 
        echo $nowtime;
        ?>
</td>
			</tr>
			<?php 
    }
    ?>
        <?php 
} else {
    ?>
        <tr>
        	<td class="center" colspan="6">无记录</td>
        </tr>
        <?php 
}
?>
        </table>
        </form>
        </div>
    </div>
</div>
<?php 
include admin_tpl('footer');
Ejemplo n.º 3
0
Archivo: v.php Proyecto: gaoerjun/Web
                             unset($oldjsonarr[$jk]);
                         }
                     }
                 }
                 $jsonarr = array_merge($oldjsonarr, $jsonarr);
             }
             $jsonstr = json_encode($jsonarr);
             @file_put_contents($jsonfile, $jsonstr);
         }
         //更新web服务器上的数据
         $url = 'http://www.cathassist.org/radio/getradio.php?channel=ai&r=1&date=' . $_POST['inputtime'];
         file_get_contents($url);
         showmessage('操作成功', '?op=v&cid=' . $cid);
     } else {
         $inputtime = date('Y-m-d');
         include admin_tpl('v_add');
     }
     break;
 case 'del':
     if (empty($_POST['nowtime'])) {
         showmessage('日期参数丢失');
     }
     if (empty($_POST['ids'])) {
         showmessage('请选择要删除的数据');
     }
     $nowtime = $_POST['nowtime'];
     $savepath = 'data/' . $cid . '/' . $nowtime . '/';
     //文件保存路径
     $jsonfile = WEB_PATH . $savepath . $nowtime . '.txt';
     if (file_exists($jsonfile)) {
         $jsonstr = file_get_contents($jsonfile);