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">
|
<script type="text/javascript">
|
||||||
function get_options(value) {
|
function get_options(value) {
|
||||||
|
var prefix = "";
|
||||||
|
if(location.href.indexOf('ros')>=0)
|
||||||
|
{
|
||||||
|
prefix = "/ros"
|
||||||
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: 'http://<%= Setting.host_user%>/school/get_options/' + encodeURIComponent(value),
|
url: prefix + '/school/get_options/' + encodeURIComponent(value),
|
||||||
data: 'text',
|
data: 'text',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#province").val(value);
|
$("#province").val(value);
|
||||||
|
|
|
@ -2,10 +2,15 @@
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
var prefix = '';
|
||||||
|
if(location.href.indexOf('ros') >= 0)
|
||||||
|
{
|
||||||
|
prefix = '/ros'
|
||||||
|
}
|
||||||
$("#province").html("<option value='0' selected = true style='display: none;'></option>");
|
$("#province").html("<option value='0' selected = true style='display: none;'></option>");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type :"POST",
|
type :"POST",
|
||||||
url :'http://<%= Setting.host_course %>/school/get_province',
|
url :prefix + '/school/get_province',
|
||||||
data: "send",
|
data: "send",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
$("#province").append(data.text);
|
$("#province").append(data.text);
|
||||||
|
@ -17,9 +22,14 @@
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function get_school(value){
|
function get_school(value){
|
||||||
|
var prefix = '';
|
||||||
|
if(location.href.indexOf('ros') >= 0)
|
||||||
|
{
|
||||||
|
prefix = '/ros'
|
||||||
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type :"POST",
|
type :"POST",
|
||||||
url :'http://<%= Setting.host_course %>/school/get_schoollist/'+encodeURIComponent(value),
|
url :prefix + '/school/get_schoollist/'+encodeURIComponent(value),
|
||||||
data :'text',
|
data :'text',
|
||||||
success: function(data){
|
success: function(data){
|
||||||
$("#schoollist").html(data);
|
$("#schoollist").html(data);
|
||||||
|
@ -44,9 +54,14 @@
|
||||||
alert("<%= l(:label_search_conditions_not_null) %>");
|
alert("<%= l(:label_search_conditions_not_null) %>");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
var prefix = '';
|
||||||
|
if(location.href.indexOf('ros') >= 0)
|
||||||
|
{
|
||||||
|
prefix = '/ros'
|
||||||
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type :"POST",
|
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',
|
data :'text',
|
||||||
success: function(data){
|
success: function(data){
|
||||||
$("#schoollist").html(data);
|
$("#schoollist").html(data);
|
||||||
|
|
Loading…
Reference in New Issue