<divstyle="color:white;display:flex;flex-direction:row;">
<ahref="/📜"title="FreiberuflerProjekte"class="mynavnavbar-brand"style="font-size:22px;">
<imgsrc="~/_images/ico/icoLogo.png"style="margin-right:2px;vertical-align:text-bottom;"/>
<spanstyle="color:white;margin-right:4px;">ProjektsuchefürFreiberufler:</span>
</a>
<formid="frmList"style="display:inline-block"onsubmit="returnsend_Search()">
<inputid="tbxSearch_Text"name="tbxSearch_Text"value="@sSearch"style="width:200px;color:black">
Ort:
<inputid="tbxSearch_Ort"name="tbxSearch_Ort"value="@sOrt"style="width:80px;color:black"/>
<buttontype="submit"style="background-color:black;border:0px;padding:0px"><imgsrc="~/_images/Ico/icoSearch.png"style="height:30px"/></button>
</form>
@{
if(sSearch!=null)
{
stringsURL_SearchAgent="";
if(SignInManager.IsSignedIn(User))
{
sURL_SearchAgent="returnpost_SearchAgent();";
}
else
{sURL_SearchAgent="/Account/Login";}
<aonclick="@sURL_SearchAgent"><divid="lnkSearchAgent"style="color:white;font-size:36px;margin-top:-10px;margin-left:4px">☆</div></a>
<script>
functionpost_SearchAgent(){
//--------<post_SearchAgent()>--------
//--<local>--
varsURL_SearchAgent="";
vartbxSearch_Text=document.getElementById("tbxSearch_Text");
vartbxSearch_Ort=document.getElementById("tbxSearch_Ort");
varlnkSearchAgent=document.getElementById("lnkSearchAgent");
if(lnkSearchAgent.innerHTML=="☆"){
varsSearch=tbxSearch_Text.value;
sSearch=encodeURIComponent(sSearch).replace(/'/g,"%27").replace(/"/g,"%22");
sURL_SearchAgent="/SearchAgents/Add?s="+sSearch;
}
else{
sURL_SearchAgent="/SearchAgents/Delete?s=xxx";
}
//--</local>--
//--<ajaxupload>--
$.ajax({
type:"POST",
url:sURL_SearchAgent,
contentType:false,
processData:false,
//nodata
data:"-no-data-",//Type:PlainObjectorStringorArray
error:function(request,status,error){
alert("Errortext:\n"+request.responseText);
}
});
//--</ajaxupload>--
//--------</post_SearchAgent()>--------
}
</script>
}
}
</div>
|