Block met andere code invoegen in een bestaande templatepagina
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
<?
block_begin(\"LoremIpsum\");
echo \'<tr><td class=blocklist align=center><a href=\"www.site.nl\">site</a></td></tr>\';
echo \'<tr><td class=blocklist align=center><a href=\"www.site.nl\">site</a></td></tr>\';
echo \'<tr><td class=blocklist align=center><a href=\"www.site.nl\">site</a></td></tr>\';
echo \'<tr><td class=blocklist align=center><a href=\"www.site.nl\">site</a></td></tr>\';
echo\'<tr><td><img src=\"../images/erik2%20(108%20x%20149).jpg\"></td></tr>\';
block_end(\"\");
?>
block_begin(\"LoremIpsum\");
echo \'<tr><td class=blocklist align=center><a href=\"www.site.nl\">site</a></td></tr>\';
echo \'<tr><td class=blocklist align=center><a href=\"www.site.nl\">site</a></td></tr>\';
echo \'<tr><td class=blocklist align=center><a href=\"www.site.nl\">site</a></td></tr>\';
echo \'<tr><td class=blocklist align=center><a href=\"www.site.nl\">site</a></td></tr>\';
echo\'<tr><td><img src=\"../images/erik2%20(108%20x%20149).jpg\"></td></tr>\';
block_end(\"\");
?>
Nu zou ik graag een soort gelijk _block maken met hierin een andere code namelijk:
<table class=\"nameringtones\" align=\"center\">
<tr>
<td valign=top>
<!-- ----------------------------- -->
<!-- START OF MOBILEMONEY.COM CODE -->
<!-- ----------------------------- -->
<form method=get name=\"mmsearchform55_11\">
<input type=hidden name=mmstart55_11 value=1>
<input type=hidden name=mmcountry55_11 value=31>
<input type=hidden name=mmchar55_11 value=>
<input type=hidden name=mmsection55_11 value=>
<input type=hidden name=mmpart55_11 value=>
<input type=hidden name=mmcat55_11 value=55>
<input type=text name=mmsearch55_11 value=><br>
<input type=hidden name=mmstype55_11 value=and>
<input type=submit value=\"Search\" id=mmsubmit name=mmsubmit>
<script language=javascript src=https://www.mobilemoney.biz/wizard2.asp?mmpart55_11=content&mmaction55_11=getparamsonly&cat=55&choice1=11></script>
</form>
<script language=javascript>
<!--
// Try to get our own param that tells us where to start
function getparam(lookfor)
{
var st = new String(document.location);
var start = st.indexOf (lookfor);
if (start != -1) {
st = st.substring (start);
start = st.indexOf (\'=\');
st = st.substring (start+1);
eind = st.indexOf (\'&\');
if (eind == -1) {
eind = st.length;
}
st = st.replace (/\\+/g, \' \');
var st = unescape (st.substring (0, eind));
} else {
st = \"\"
}
return st;
}
//-->
</script>
<script language=javascript>
<!--
function submit_search() {
var stype
var mmcat
for (i = 0; i < mmsearchform55_11.mmstype55_11.length; i++) {
if (mmsearchform55_11.mmstype55_11.checked) {
stype = mmsearchform55_11.mmstype55_11.value;
}
}
if (typeof(stype)==\'undefined\') stype=mmsearchform55_11.mmstype55_11.value;
for (i = 0; i < mmsearchform55_11.mmcat55_11.length; i++) {
if (mmsearchform55_11.mmcat55_11.selected) {
mmcat = mmsearchform55_11.mmcat55_11.value;
}
}
if (typeof(mmcat)==\'undefined\') mmcat=mmsearchform55_11.mmcat55_11.value;
mmsearchresults(mmsearchform55_11.mmsearch55_11.value, stype, mmcat, mmsearchform55_11.mmcountry55_11.value);
}
function countrychange()
{
document.mmsearchform55_11.mmcountry55_11.value = document.mmsearchform55_11.mmcat55_11[document.mmsearchform55_11.mmcat55_11.selectedIndex].id;
}
if (typeof(document.mmsearchform55_11.mmcat55_11.options) != \'undefined\') {
for (i = 0; i < document.mmsearchform55_11.mmcat55_11.options.length; i++) {
if (document.mmsearchform55_11.mmcat55_11.options.value == getparam(\"mmcat55_11\")) {
if ((getparam(\"mmcat55_11\") == 0) || (document.mmsearchform55_11.mmcat55_11.options.id == getparam(\"mmcountry55_11\"))) {
document.mmsearchform55_11.mmcat55_11.options.selected = true;
}
}
}
}
if (typeof(document.mmsearchform55_11.mmstype55_11[1]) != \'undefined\') {
if (getparam(\"mmstype55_11\") == \'and\') {
document.mmsearchform55_11.mmstype55_11[0].checked = true
}
}
if (typeof(document.mmsearchform55_11.mmcat55_11.options) != \'undefined\') {
document.mmsearchform55_11.mmcountry55_11.value = document.mmsearchform55_11.mmcat55_11[document.mmsearchform55_11.mmcat55_11.selectedIndex].id;
}
document.mmsearchform55_11.mmsearch55_11.value = unescape(getparam(\"mmsearch55_11\"))
//-->
</script>
<!-- ----------------------------- -->
<!-- END OF CODE -->
<!-- ----------------------------- -->
</td>
</tr>
<tr>
<td valign=top>
<!-- ----------------------------- -->
<!-- START OF MOBILEMONEY.COM CODE -->
<!-- ----------------------------- -->
<link rel=stylesheet type=text/css href=https://www.mobilemoney.biz/mmskins/mmskin1/mmskin1.css>
<script language=\'javascript\'>
<!--
function mobilemoneysale(ordernumber,pos)
{
mmrefname = \'erikbos\';
mmlanguage = \'xx\';
mmpskin = \'default\';
window.open(\'https://www.mobilemoney.biz/salespopup.asp?pos=\'+escape(pos)+\'&ordernumber=\'+escape(ordernumber)+\'&refname=\'+escape(mmrefname)+\'&language=\'+escape(mmlanguage)+\'&popupskin=\'+escape(mmpskin),\'popup\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=468,height=550,left=\'+eval((screen.availWidth/2)-234)+\',top=50\');
}
//-->
</script>
<script language=\'javascript\'>
<!--
function listenwindow(listenurl)
{
window.open(listenurl, \'Listen\', \'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=150,height=150,left=\'+eval((screen.availWidth/2)-75)+\',top=50\');
}
//-->
</script>
<script language=javascript>
<!--
// Try to get our own param that tells us where to start
function getparam(lookfor)
{
var st = new String(document.location);
var start = st.indexOf (lookfor);
if (start != -1) {
st = st.substring (start);
start = st.indexOf (\'=\');
st = st.substring (start+1);
eind = st.indexOf (\'&\');
if (eind == -1) {
eind = st.length;
}
st = st.replace (/\\+/g, \' \');
var st = unescape (st.substring (0, eind));
} else {
st = \"\"
}
return st;
}
//-->
</script>
<script language=javascript>
<!--
mm_speaker_url = \"https://www.mobilemoney.biz/images/speaker.gif\";
document.writeln(\'<sc\'+\'ript language=javascript src=\"https://www.mobilemoney.biz/wizard2.asp?mmpart55_11=content&mmchar55_11=\'+getparam(\"mmchar55_11\")+\'&mmstart55_11=\'+getparam(\"mmstart55_11\")+\'&mmsection55_11=\'+getparam(\"mmsection55_11\")+\'&cat=\'+getparam(\"mmcat55_11\")+\'&choice1=11&rows=10&cols=2&hidesex=&refname=erikbos&language=en&charset=§ions=55&mmcountry55_11=\'+getparam(\"mmcountry55_11\")+\'&mmsearch55_11=\'+getparam(\"mmsearch55_11\")+\'&mmstype55_11=\'+getparam(\"mmstype55_11\")+\'\"></sc\'+\'ript>\');
//-->
</script>
<!-- ----------------------------- -->
<!-- END OF CODE -->
<!-- ----------------------------- -->
</td>
</tr>
</table>
Deze code voegt een zoekveld in voor ringtones
Waneer ik deze code invoeg wordt mijn hele pagina uit het verband getrokken.
Waarschijnlijk wil dit dus niet maar ik weet niet hoe ik dit wel moet benaderen. Weet iemand hier iets op?
Groetjes Erik
Er zijn nog geen reacties op dit bericht.