Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
This commit is contained in:
commit
3cd3989ead
|
@ -14,9 +14,14 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
function get_options(value) {
|
||||
var prefix = "";
|
||||
if(location.href.indexOf('ros')>=0)
|
||||
{
|
||||
prefix = "/ros"
|
||||
}
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'http://<%= Setting.host_user%>/school/get_options/' + encodeURIComponent(value),
|
||||
url: prefix + '/school/get_options/' + encodeURIComponent(value),
|
||||
data: 'text',
|
||||
success: function (data) {
|
||||
$("#province").val(value);
|
||||
|
|
|
@ -2,10 +2,15 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
var prefix = '';
|
||||
if(location.href.indexOf('ros') >= 0)
|
||||
{
|
||||
prefix = '/ros'
|
||||
}
|
||||
$("#province").html("<option value='0' selected = true style='display: none;'></option>");
|
||||
$.ajax({
|
||||
type :"POST",
|
||||
url :'http://<%= Setting.host_course %>/school/get_province',
|
||||
url :prefix + '/school/get_province',
|
||||
data: "send",
|
||||
success: function(data, textStatus){
|
||||
$("#province").append(data.text);
|
||||
|
@ -17,9 +22,14 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
function get_school(value){
|
||||
var prefix = '';
|
||||
if(location.href.indexOf('ros') >= 0)
|
||||
{
|
||||
prefix = '/ros'
|
||||
}
|
||||
$.ajax({
|
||||
type :"POST",
|
||||
url :'http://<%= Setting.host_course %>/school/get_schoollist/'+encodeURIComponent(value),
|
||||
url :prefix + '/school/get_schoollist/'+encodeURIComponent(value),
|
||||
data :'text',
|
||||
success: function(data){
|
||||
$("#schoollist").html(data);
|
||||
|
@ -44,9 +54,14 @@
|
|||
alert("<%= l(:label_search_conditions_not_null) %>");
|
||||
return;
|
||||
}
|
||||
var prefix = '';
|
||||
if(location.href.indexOf('ros') >= 0)
|
||||
{
|
||||
prefix = '/ros'
|
||||
}
|
||||
$.ajax({
|
||||
type :"POST",
|
||||
url :'http://<%= Setting.host_course %>/school/search_school/?key_word='+encodeURIComponent(value)+'&province='+province,
|
||||
url :prefix + '/school/search_school/?key_word='+encodeURIComponent(value)+'&province='+province,
|
||||
data :'text',
|
||||
success: function(data){
|
||||
$("#schoollist").html(data);
|
||||
|
|
Loading…
Reference in New Issue