API
1.首页图片及连接api
cms.baiyilou.com/api/index.php?ref=index
返回格式
csr([{"textimg":"1.jpg","slideimg":"2.jpg","link":"http:\/\/11.com"},{"textimg":"Screenshot_2014-05-26-08-56-43.png","slideimg":"Screenshot_2014-05-26-08-57-31.png","link":"44"},{"textimg":"Screenshot_2014-05-26-08-57-31.png","slideimg":"Screenshot_2014-05-26-08-57-46.png","link":"55"}])
2.品牌页
2.1列表 ref=brandlist
返回格式
csr([{"id":"1","title":"3232","content":"323","textimg":"323","slideimg":"3232"}])
2.2详细 ?ref=brand&id=1
返回格式csr({"brand":{"id":"1","title":"3232","content":"323","textimg":"323","slideimg":"3232"},"wine":[{"id":"1","type":"1","summary":"","title":"0","content":"0","pic":"1.jpg","status":"0","addtime":""},{"id":"2","type":"1","summary":"","title":"23","content":"23","pic":"2.jpg","status":"0","addtime":""}]})3.招聘
3.1 列表 ref=joblist
返回格式
csr([{"id":"1","type":"1","title":"1","summary":"2"},{"id":"2","type":"1","title":"2","summary":"23"},{"id":"3","type":"1","title":"3","summary":"2"},{"id":"4","type":"1","title":"4","summary":"2"},{"id":"5","type":"1","title":"5","summary":"23"},{"id":"6","type":"1","title":"6","summary":"23"},{"id":"7","type":"1","title":"7","summary":"2"},{"id":"8","type":"1","title":"8","summary":"3"},{"id":"9","type":"1","title":"9","summary":"234"},{"id":"10","type":"1","title":"10","summary":"23"},{"id":"11","type":"1","title":"11","summary":"23"},{"id":"12","type":"1","title":"12","summary":"2"},{"id":"13","type":"1","title":"13","summary":"2"},{"id":"14","type":"1","title":"14","summary":"2"},{"id":"15","type":"1","title":"15","summary":"23"},{"id":"16","type":"1","title":"16","summary":"423"},{"id":"17","type":"1","title":"17","summary":"423"},{"id":"18","type":"1","title":"18","summary":"23"},{"id":"19","type":"1","title":"55","summary":"32"},{"id":"20","type":"1","title":"212","summary":"2"},{"id":"21","type":"2","title":"","summary":"23"}])
3.2 详细 ?ref=job&id=2
返回格式
csr([{"id":"2","type":"1","title":"2","content":"2"}])
4.联系我们
http://localhost/csr/api/?ref=contact&contact=1&name=1&mail=1&country=1
ref=contact
$contact = mysql_real_escape_string($_REQUEST['contact']);
$name = mysql_real_escape_string($_REQUEST['name']);
$mail = mysql_real_escape_string($_REQUEST['mail']);
$country = mysql_real_escape_string($_REQUEST['country']);
返回格式
csr({"success":1})
失败
csr({"success":0})
5.搜索
ref=search
返回格式
csr()
6.简历提交
ref=addjob
参数
$id = mysql_real_escape_string($_REQUEST['id']);//job id 用来获取收件人 必须
$name = mysql_real_escape_string($_REQUEST['name']);//姓名
$sex = mysql_real_escape_string($_REQUEST['sex']);//性别
$mobile = mysql_real_escape_string($_REQUEST['mobile']);//mobile
$mail = mysql_real_escape_string($_REQUEST['mail']);//mail
$doc = mysql_real_escape_string($_REQUEST['doc']);//文件
返回格式
csr()
7.图片上传()
ref=uploadpic&mypic=
返回格式
csr()
8.文件上传(也可上传图片格式为.doc,.docx,.jpg)
ref=uploadfile&myfile=
返回格式
csr({"name":"minomet-oruzhie-fon.jpg","file":"20150713085919823.jpg","size":710.3})