<a href='ext:sms/{$body}'>发送短信>></a><br/>
//搜索
function searchMovie(){
$content="";
$content .= '<input type="text" name="keyword" value="" />';
$content .= '<anchor title="">'.gb2u("电影名");
$content .= "<go method='post' href='index.php?type=s_m$sion'>";
$content .= '<postfield name="keyword" value="$keyword"/>';
$content .="</go></anchor> ";
$content .= '<anchor title="">'.gb2u("影人名");
$content .= "<go method='post' href='index.php?type=s_a1‘>";
$content .= '<postfield name="keyword" value="$keyword"/>';
$content .="</go></anchor>";
$content .="<br/>";
return $content;
}
/**
* 评分
*/
function showRating($id,$rating,$stat=0){
global $session;
$content=null;
$content .= "<select name=\"astro\" ivalue=\"1\">";
for($i=1;$i<11;$i++){
$content .= "<option value='{$i}'>".$i."</option>";
}
$content .='</select>';
$int=$stat==1?"&intro=1":"";
$content .="<anchor>".gb2u('评分')."<go href='movie_details.php?type=deta&session=$session&id=$id&rating0=$rating&rating1=$(astro)$int'/></anchor><br/>";
return $content;
}
本文介绍了一个简单的电影搜索与评分系统实现方式。该系统提供电影和影人搜索功能,并允许用户通过一个直观的界面为电影打分。文章展示了如何创建搜索表单及下拉菜单式的评分组件。
1302

被折叠的 条评论
为什么被折叠?



