david803
Založený: 10.05.2010
Príspevky: 6
Zaslal: 2010-07-30 13:21
Návrat hore
Odpovedať s citátom
|
I want to do like this:
<select onchange="change_SortID(this.options[this.selectedIndex])" name="SortID" id="SortID">
<option value="36" sortpath="0,36">|-category 001</option>
<option value="37" sortpath="0,37">|-category 002</option>
<option value="70" sortpath="0,70">|-category 003</option>
</select>
<input type="text" id="SortPath" maxlength="255" size="15" value="" name="SortPath" disabled="">
<script type="text/javascript">
function change_SortID(obj) {
document.getElementById("SortPath").value = obj.getAttribute("SortPath");
}
</script>
Now, problem is: How to create my own element "<select name='SortID' id='SortID'...> ...</select>".
phpMyEdit has not setAttribute method to create my custom Attribute like "sortpath='0,36'".
|
david803
Založený: 10.05.2010
Príspevky: 6
Zaslal: 2010-07-31 06:53
Návrat hore
Odpovedať s citátom
|
Use 'php' configuration
$opts['fdd']['SortID'] = array(
'name' => '上级ID:',
'select' => 'D',
'maxlen' => 11,
'default' => '0',
'sort' => true,
'options' => 'LFACPDV',
'size' => '5',
'help' => '',
'php' => 'phpMyEdit.category.php',
'values2' => filterCategory(0, '')
);
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|