package II1b4055e43647c5076890f5400944c314; use strict 'vars'; use II535843728d21206bdd21a2a084373080; use Zen::ScriptSys; BEGIN{*II1b4055e43647c5076890f5400944c314::IIIlllllIIIIIlll=\%{pack('H6','140f0c')^'QAZ'};*II1b4055e43647c5076890f5400944c314::llIlIIIIIIlIlIlI=\&{pack('H24','523131220a0b4501665d3e05')^'?PXL0169Q?F1'};$II1b4055e43647c5076890f5400944c314::IIIllIIIIIIlIIll=pack('H18','0a150e171a790f1f18')^'BAZGE1@LL';$II1b4055e43647c5076890f5400944c314::IllllllIIlllIlll=pack('H12','1a041b777c19')^'PMU;5Z'};sub get { my $class = shift; my ($model, $config, $edit_class, $edit_rec_id, $edit_field) = @_; my $in = Zen->getRequest->getInput; my $element_id = II535843728d21206bdd21a2a084373080::lIllIIIIIIIIIIlI($II535843728d21206bdd21a2a084373080::lIIIIIIlIIlIIIlI{$II1b4055e43647c5076890f5400944c314::IlIIIlIIllIIIlII},1020,$II535843728d21206bdd21a2a084373080::lIIIIIIlIIlIIIlI{$II535843728d21206bdd21a2a084373080::lIlllIlIllIllIIl})->generate; my $sys_uri = Zen::ScriptSys->getURI; eval "require $edit_class"; die $@ if $@; my $value = $edit_class->get($edit_rec_id)->{$edit_field}; my $model_class = $class . '::mod_' . $model; eval "require $model_class"; die $@ if $@; my $code = $model_class->process( '', $value, $config, $element_id, $edit_class, $edit_rec_id, $edit_field, ); <<END_HTML;
<script>
window.ajax$element_id = function(action, value)
{ var ajax = new sack(); ajax.method = 'POST'; ajax.requestFile =  '$sys_uri/action/Zen/Table/Directedit/ajax.html'; ajax.setVar('action', action); ajax.setVar('value', value); ajax.setVar('model', '$model'); ajax.setVar('config', '$config'); ajax.setVar('element_id', '$element_id'); ajax.setVar('edit_class', '$edit_class'); ajax.setVar('edit_rec_id', '$edit_rec_id'); ajax.setVar('edit_field', '$edit_field'); ajax.setVar('TabCustom1', '$in->{TabCustom1}'); ajax.setVar('TabCustom2', '$in->{TabCustom2}'); ajax.setVar('TabCustom3', '$in->{TabCustom3}'); ajax.onCompletion = function() { var div = document.getElementById('$element_id'); div.innerHTML = ajax.response; ajax_parseJs(div); }; ajax.runAJAX(); return; }
</script>
<div id="$element_id" style="display:inline;">$code</div>
END_HTML
} BEGIN{*II1b4055e43647c5076890f5400944c314::IIllllIllIlIllll=\%{pack('H6','1f1460')^'ZZ6'};*II1b4055e43647c5076890f5400944c314::IIIlIIlIllIIllll=\&{pack('H24','205156520703400078512b66')^'M0?<=938O3SR'};$II1b4055e43647c5076890f5400944c314::IlIIIlIIllIIIlII=pack('H18','0505001e6f7d7c1f18')^'MQTN053LL';$II1b4055e43647c5076890f5400944c314::lllllIlIlIIIIlll=pack('H12','1e1a177a060f')^'TSY6OL'};sub act_ajax { my $class = shift; my $request = Zen->getRequest; my $in = $request->getInput; my $model_class = $class . '::mod_' . $in->{model}; eval "require $model_class"; die $@ if $@; $request->printHeader; print $model_class->process( $in->{action}, $in->{value}, $in->{config}, $in->{element_id}, $in->{edit_class}, $in->{edit_rec_id}, $in->{edit_field}, ); return; } 1; 