|
Revision 2117, 1.7 kB
(checked in by lmajano, 4 years ago)
|
|
many to many support finalized.
|
| Line | |
|---|
| 1 | <cfoutput> |
|---|
| 2 | <tr id="m2m_#rc.alias#"> |
|---|
| 3 | <td class="center"> |
|---|
| 4 | <a href="javascript:removeRow('m2m_#rc.alias#')" title="Remove Relationship"><img border="0" src="#getSetting('lookups_imgPath')#/bin_closed.png" alt="Remove" title="Remove Relationship" /></a> |
|---|
| 5 | </td> |
|---|
| 6 | <td>#rc.alias# |
|---|
| 7 | <input type="hidden" name="#rc.currentTable#_m2m" id="#rc.currentTable#_m2m" value="#rc.alias#" /> |
|---|
| 8 | </td> |
|---|
| 9 | <td> |
|---|
| 10 | <!--- M2M rc.currentTable Chooser: List of All rc.tables ---> |
|---|
| 11 | <select name="#rc.currentTable#_m2m_#rc.alias#_table" id="#rc.currentTable#_m2m_#rc.alias#_table" |
|---|
| 12 | onChange="populateColumns('#rc.currentTable#_m2m_#rc.alias#_fromColumn','#rc.currentTable#_m2m_#rc.alias#_toColumn',this.value)"> |
|---|
| 13 | <option value='null' checked="checked">Please select a table</option> |
|---|
| 14 | <cfloop query="rc.qTables"> |
|---|
| 15 | <option>#table_name#</option> |
|---|
| 16 | </cfloop> |
|---|
| 17 | </select> |
|---|
| 18 | </td> |
|---|
| 19 | <td>#rc.aliasMap[rc.currentTable]#</td> |
|---|
| 20 | <td> |
|---|
| 21 | <!--- This rc.table Column Listing: Columns From Current rc.table ---> |
|---|
| 22 | <select name="#rc.currentTable#_m2m_#rc.alias#_fromColumn" id="#rc.currentTable#_m2m_#rc.alias#_fromColumn"> |
|---|
| 23 | <option></option> |
|---|
| 24 | </select> |
|---|
| 25 | </td> |
|---|
| 26 | <td> |
|---|
| 27 | <!--- The listing of To Class Lists ---> |
|---|
| 28 | <select name="#rc.currentTable#_m2m_#rc.alias#_toClass" id="#rc.currentTable#_m2m_#rc.alias#_toClass" |
|---|
| 29 | onChange="updatem2mColumns('#rc.currentTable#_m2m_#rc.alias#_toColumn',this.value)"> |
|---|
| 30 | <cfloop list="#rc.tables#" index="selectTable"> |
|---|
| 31 | <option value="#selectTable#">#rc.aliasMap[selectTable]#</option> |
|---|
| 32 | </cfloop> |
|---|
| 33 | </select> |
|---|
| 34 | </td> |
|---|
| 35 | <td> |
|---|
| 36 | <!--- To rc.table Column Listing ---> |
|---|
| 37 | <select name="#rc.currentTable#_m2m_#rc.alias#_toColumn" id="#rc.currentTable#_m2m_#rc.alias#_toColumn"> |
|---|
| 38 | <option></option> |
|---|
| 39 | </select> |
|---|
| 40 | </td> |
|---|
| 41 | </tr> |
|---|
| 42 | </cfoutput> |
|---|